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(); }
protected virtual void ScopeBlock(JoopCompilerScope childScope, JoopToken block) { childScope.BlockOffset = BlockOffset + block.Index + 1; childScope.Parse(this, this.Output, block.Content); }