public override void yyerror(string s, params object[] a) { if (handler != null) { handler.AddError(s, tokLin, tokCol, tokLin, tokECol); } }
public void StartScope(string name = null) { if (ScopesStack.Count > 1000) { _errorHandler.AddError(new RuntimeError("Stack overflow")); } else { ScopesStack.Push(new Scope { Name = name ?? Guid.NewGuid().ToString() }); } }