mirror of
https://github.com/autc04/Retro68.git
synced 2024-12-22 19:30:36 +00:00
Rez: implement "type 'XXXX' as 'YYYY'" directive
This commit is contained in:
parent
3b7b07a8a2
commit
2e6fe30d61
@ -186,7 +186,11 @@ type_definition : "type" type_spec
|
||||
"{" field_definitions "}"
|
||||
{ world.fieldLists.pop(); if(world.verboseFlag) std::cout << "TYPE " << $2 << std::endl; }
|
||||
| "type" type_spec "as" type_spec
|
||||
{ if(world.verboseFlag) std::cout << "TYPE " << $2 << std::endl; }
|
||||
{
|
||||
if(world.verboseFlag) std::cout << "TYPE " << $2 << std::endl;
|
||||
auto spec = $4;
|
||||
world.addTypeDefinition($2, world.getTypeDefinition(spec.getType(), spec.getID(), @4));
|
||||
}
|
||||
;
|
||||
|
||||
%type <ResType> res_type;
|
||||
|
Loading…
Reference in New Issue
Block a user