protected ParserBase(IEnumerable <IToken> tokens, ParserFactory parserFactory) { Tokens = tokens ?? throw new ArgumentNullException(nameof(tokens)); ParserFactory = parserFactory ?? throw new ArgumentNullException(nameof(parserFactory)); }
public JackParser(ParserFactory parserFactory) { _parserFactory = parserFactory ?? throw new ArgumentNullException(nameof(parserFactory)); }
public TypeParser(IEnumerable <IToken> tokens, ParserFactory parserFactory) : base(tokens, parserFactory) { }