fCraft.SimpleParser.ProcessComma C# (CSharp) Method

ProcessComma() private static method

private static ProcessComma ( Expression e, Stack tmpStack, int pos ) : void
e Expression
tmpStack Stack
pos int
return void
        private static void ProcessComma( Expression e, Stack<FuncData> tmpStack, int pos )
        {
            if ( tmpStack.Count == 0 )
                throw new ArgumentException( "comma without left parenthesis at " + pos );
            while ( tmpStack.Peek().SpecialKind != SpecialOperandKind.LeftParenthesis ) {
                e.Append( tmpStack.Pop().Func );
                if ( tmpStack.Count == 0 )
                    throw new ArgumentException( "comma without left parenthesis at " + pos );
            }
        }