Exemplo n.º 1
0
        public void Parse(JoopCompilerScope parentScope, StringBuilder output, string block)
        {
            ParentScope = parentScope;
            Output      = output;

            Tokens     = JoopTokenizer.Tokenize(block);
            tokenIndex = 0;
            WriteOpening();

            for (int i = 0; i < 1000 && tokenIndex < Tokens.Count; i++)
            {
                Parse();
            }

            WriteClosing();
        }
Exemplo n.º 2
0
 protected virtual void ScopeBlock(JoopCompilerScope childScope, JoopToken block)
 {
     childScope.BlockOffset = BlockOffset + block.Index + 1;
     childScope.Parse(this, this.Output, block.Content);
 }