public TaggedSyntaxNode(SyntaxNode syntaxNode, string tagName) { _syntaxNode = syntaxNode; _tagName = tagName; }
public Optional(SyntaxNode syntaxNode) { _syntaxNode = syntaxNode; }
public Some(SyntaxNode syntaxNode) { _syntaxNode = syntaxNode; }
public Many(SyntaxNode syntaxNode) { _syntaxNode = syntaxNode; }
public Declare(string type, string name, SyntaxNode syntaxNode) { _type = type; _name = name; _syntaxNode = syntaxNode; }
public CodeAnotation(SyntaxNode syntaxNode, string code) { _syntaxNode = syntaxNode; _code = code; }
private static void Warning(string message, SyntaxNode set) { }
public bool TryParseExpression(string ebnfText, out SyntaxNode result) { var input = ebnfText.ToList(); int endInput; var tryParseExpression = _expression.Parse(input, 0, out endInput, out result); return tryParseExpression && endInput==input.Count; }