BNF:6: PRIMTYPE ::= 'void' | 'int' | 'int8' | 'int16' | 'int32' | 'int64' | 'uint' | 'uint8' | 'uint16' | 'uint32' | 'uint64' | 'float' | 'double' | 'bool'
| 682 | |
| 683 | // BNF:6: PRIMTYPE ::= 'void' | 'int' | 'int8' | 'int16' | 'int32' | 'int64' | 'uint' | 'uint8' | 'uint16' | 'uint32' | 'uint64' | 'float' | 'double' | 'bool' |
| 684 | asCScriptNode *asCParser::ParseRealType() |
| 685 | { |
| 686 | asCScriptNode *node = CreateNode(snDataType); |
| 687 | if( node == 0 ) return 0; |
| 688 | |
| 689 | sToken t1; |
| 690 | |
| 691 | GetToken(&t1); |
| 692 | if( !IsRealType(t1.type) ) |
| 693 | { |
| 694 | Error(TXT_EXPECTED_DATA_TYPE, &t1); |
| 695 | Error(InsteadFound(t1), &t1); |
| 696 | return node; |
| 697 | } |
| 698 | |
| 699 | node->SetToken(&t1); |
| 700 | node->UpdateSourcePos(t1.pos, t1.length); |
| 701 | |
| 702 | return node; |
| 703 | } |
| 704 | |
| 705 | // BNF:17: IDENTIFIER ::= single token: starts with letter or _, can include any letter and digit, same as in C++ |
| 706 | asCScriptNode *asCParser::ParseIdentifier() |
nothing calls this directly
no test coverage detected