protected override object OnUcCategory(ITerminalToken token) { if (token == null) { throw new ArgumentNullException(nameof(token)); } return(new UcCategory(token.Value)); }
protected override object OnNumber(ITerminalToken token) { if (token == null) { throw new ArgumentNullException(nameof(token)); } return(new Integer(token.Value)); }
protected override object OnAny(ITerminalToken token) { if (token == null) { throw new ArgumentNullException(nameof(token)); } return(new Any()); }
protected override object OnIdentifier(ITerminalToken token) { if (token == null) { throw new ArgumentNullException(nameof(token)); } return(new Name(token.Value)); }
protected override object OnText(ITerminalToken token) { if (token == null) { throw new ArgumentNullException(nameof(token)); } return(new Tree.String(token.Value)); }
protected override object OnIdentifier(ITerminalToken token) { return(new Name(token.Value)); }
protected override object OnNumber(ITerminalToken token) { return(new Integer(token.Value)); }
protected override object OnAny(ITerminalToken token) { return(new Any()); }
protected override object OnUcCategory(ITerminalToken token) { return(new UcCategory(token.Value)); }
protected abstract T OnText(ITerminalToken token);
protected abstract T OnUcCategory(ITerminalToken token);
protected abstract T OnNonl(ITerminalToken token);
protected abstract T OnBegin(ITerminalToken token);
protected abstract T OnNumber(ITerminalToken token);
protected abstract T OnIdentifier(ITerminalToken token);
protected abstract T OnUcCodepoint(ITerminalToken token);
protected override T OnWs(ITerminalToken token) { Debug.Assert(token != null); return(DefaultOn(token)); }
protected override object OnText(ITerminalToken token) { return(new Tree.String(token.Value)); }
protected abstract T OnUcBlock(ITerminalToken token);
protected override object OnUcCodepoint(ITerminalToken token) { return(new UcCodepoint(token.Value)); }
protected override object OnUcBlock(ITerminalToken token) { return(new UcBlock(token.Value)); }
protected abstract T OnWs(ITerminalToken token);
protected abstract T OnWhitespace(ITerminalToken token);