Esempio n. 1
0
 private void Group(GroupNode group)
 {
     ExpressionList(group.Expressions);
 }
Esempio n. 2
0
 public void AddGroup(GroupNode group)
 {
     _groups.Add(group);
 }
Esempio n. 3
0
        private GroupNode ParseGroup()
        {
            var group = new GroupNode();
            group.AddToken(Expect(TokenType.OpenCurly));

            while (!IsNext(TokenType.CloseCurly))
            {
                group.AddExpression(ParseExpression());

                if (IsNext(TokenType.Comma)) // optional comma
                {
                    group.AddToken(Advance());
                }
            }

            group.AddToken(Expect(TokenType.CloseCurly));
            return group;
        }
Esempio n. 4
0
 private void Group(GroupNode group)
 {
     ExpressionList(group.Expressions);
 }