public override void EnterVariable([NotNull] TxMarkParser.VariableContext context) { _compileContext.SetLocation(context.Start.Line, context.Start.Column); var word = context.word(); if (word == null) { _compileContext.Punctuation('$'); } else { _compileContext.Variable(word.GetText()); } }