- else if(token.type==Token::INTEGER)
- result.args.push_back(Value(INTEGER, token.str));
- else if(token.type==Token::FLOAT)
- result.args.push_back(Value(FLOAT, token.str));
- else if(token.type==Token::STRING)
- result.args.push_back(Value(STRING, token.str));
- else if(token.type==Token::IDENTIFIER)
- {
- if(token.str=="true")
- result.args.push_back(Value(BOOLEAN, "1"));
- else if(token.str=="false")
- result.args.push_back(Value(BOOLEAN, "0"));
- else
- result.args.push_back(Value(ENUM, token.str));
- //result.args.push_back(resolve_identifiertoken.str);
- }
- else if(token.str=="")
- throw ParseError(src+": Unexcepted end of input", src, in.get_line_number());