/// <summary> /// /// </summary> /// <param name="grammar">Definição da gramática</param> /// <param name="emitter">Compilador (emissor) do objeto final</param> public MyCompiler(MyGrammar grammar, MyEmitterDelegate <T> emitter) { _grammar = grammar ?? throw new ArgumentNullException(nameof(grammar)); _emitter = emitter ?? throw new ArgumentNullException(nameof(emitter)); }
public MyScanner(MyGrammar grammar) { _grammar = grammar ?? throw new ArgumentNullException(nameof(grammar)); }