public Lexer(LexerConfig config) { this.blocks = new LexemMatch[] { new LexemMatch (LexemType.BraceBegin, config.BlockBegin), new LexemMatch (LexemType.Pipe, config.BlockContinue), new LexemMatch (LexemType.BraceEnd, config.BlockEnd) }; this.pending = new LexemMatch (LexemType.None, string.Empty); }
public Parser(LexerConfig config) { this.lexer = new Lexer (config); }
public Document(string template, LexerConfig config) : this(new StringReader (template), config) { }
public Document(TextReader reader, LexerConfig config) { Parser parser = new Parser (config); this.root = parser.Parse (reader); }