MCPcopy Create free account
hub / github.com/MayaPosch/NymphCast / ParseRealType

Method ParseRealType

src/server/angelscript/angelscript/source/as_parser.cpp:684–703  ·  view source on GitHub ↗

BNF:6: PRIMTYPE ::= 'void' | 'int' | 'int8' | 'int16' | 'int32' | 'int64' | 'uint' | 'uint8' | 'uint16' | 'uint32' | 'uint64' | 'float' | 'double' | 'bool'

Source from the content-addressed store, hash-verified

682
683// BNF:6: PRIMTYPE ::= 'void' | 'int' | 'int8' | 'int16' | 'int32' | 'int64' | 'uint' | 'uint8' | 'uint16' | 'uint32' | 'uint64' | 'float' | 'double' | 'bool'
684asCScriptNode *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++
706asCScriptNode *asCParser::ParseIdentifier()

Callers

nothing calls this directly

Calls 2

SetTokenMethod · 0.80
UpdateSourcePosMethod · 0.80

Tested by

no test coverage detected