public SqfListener() { this.OtherSyntaxErrors = new List <SyntaxError>(); this.Current = new SqfCode(null); #if DEBUG this.Original = this.Current; #endif }
private T ExitGeneric <T>(ParserRuleContext ctx, [System.Runtime.CompilerServices.CallerMemberName] string caller = "") where T : SqfNode { var node = this.Current; this.Current = node.GetParent(); Logger.Info(string.Format("EXIT :{0:#####}{1}{2}: {3}", ctx.start.Line, new string('\t', node.ParentCount()), caller.Remove(0, "Exit".Length), ctx.GetText())); node.StartOffset = ctx.Start.StartIndex; node.Line = ctx.Start.Line; node.Length = ctx.Stop == null?ctx.GetText().Length : ctx.Stop.StopIndex - node.StartOffset; node.Col = ctx.start.Column; return(node as T); }
public SqfCode(SqfNode parent) : base(parent) { }
private void EnterGeneric(SqfNode node, [System.Runtime.CompilerServices.CallerMemberName] string caller = "") { Logger.Info(string.Format("ENTER:{0}{1}", new string('\t', node.ParentCount()), caller.Remove(0, "Enter".Length))); this.Current.AddChild(node); this.Current = node; }
public SqfNularExpression(SqfNode parent) : base(parent) { }
public SqfValue(SqfNode parent) : base(parent) { }
public SqfVariable(SqfNode parent) : base(parent) { }
public SqfRemovable(SqfNode parent) : base(parent) { }
public SqfPrimaryExpression(SqfNode parent) : base(parent) { }
public SqfArray(SqfNode parent) : base(parent) { }
public SqfNumber(SqfNode parent) : base(parent) { }
public SqfOperator(SqfNode parent) : base(parent) { }
public SqfString(SqfNode parent) : base(parent) { }
public SqfBinaryExpression(SqfNode parent) : base(parent) { }