Пример #1
0
 private void Group(GroupNode group)
 {
     ExpressionList(group.Expressions);
 }
Пример #2
0
 public void AddGroup(GroupNode group)
 {
     _groups.Add(group);
 }
Пример #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;
        }
Пример #4
0
 private void Group(GroupNode group)
 {
     ExpressionList(group.Expressions);
 }