コード例 #1
0
        internal static List <CTFAssignmentExpression> ParseList(CTFScope scope, TokParser tp)
        {
            List <CTFAssignmentExpression> cael = new List <CTFAssignmentExpression>();

            while (true)
            {
                CTFAssignmentExpression cae = Parse(scope, tp);
                if (cae == null)
                {
                    break;
                }

                tp.MustBe(Token.EnumId.TERM);
                cael.Add(cae);
            }

            if (cael.Count == 0)
            {
                return(null);
            }

            return(cael);
        }