Example #1
0
        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);
        }
Example #2
0
 public Parser(LexerConfig config)
 {
     this.lexer = new Lexer (config);
 }
Example #3
0
 public Document(string template, LexerConfig config)
     : this(new StringReader (template), config)
 {
 }
Example #4
0
        public Document(TextReader reader, LexerConfig config)
        {
            Parser  parser = new Parser (config);

            this.root = parser.Parse (reader);
        }