public LexicalException(string message, DFAException e, int row, int col) : base(message, e) { _State = e.State; _CurrentChar = (char)e.Action; _Row = row; _Col = col; }
public SyntaxException(string message, object curSyntax, DFAException e, LexicalAnalysis.Lexical.Token token) : base(message, e) { _State = e.State; try { _SyntaxType = (SyntaxType)e.Action; } catch { } _Word = token.Text; _Row = token.Row; _Col = token.Col; if (curSyntax != null) { _CurrentSyntax = curSyntax.GetType().Name; } }