private StatementNode ParseStatement() { AssertHasType(TokenKind.Statement); var statement = new StatementNode(tokenStream.Current.Value); tokenStream.MoveNext(); return statement; }
private IDaisyAstNode ParseGroup(StatementNode head) { Consume(TokenKind.StartGroup); var groupInner = ParseExpression(); Consume(TokenKind.EndGroup); if (head == null || head.Text == null) return groupInner; return new GroupOperatorNode(head.With(x => head.Text), groupInner); }