mirror of
https://github.com/autc04/Retro68.git
synced 2024-12-22 19:30:36 +00:00
Rez: accept "binary" radix declaration for fields
This commit is contained in:
parent
c517558e5b
commit
f52121964c
@ -66,7 +66,7 @@ public:
|
||||
|
||||
enum class Attrs
|
||||
{
|
||||
none = 0, hex = 1, key = 2, unsigned_ = 4, literal = 8
|
||||
none = 0, hex = 1, key = 2, unsigned_ = 4, literal = 8, binary = 16
|
||||
};
|
||||
|
||||
Type type;
|
||||
|
@ -186,6 +186,7 @@ RezSymbol RezLexer::nextToken()
|
||||
KEYWORD(KEY, "key"),
|
||||
KEYWORD(WIDE,"wide"),
|
||||
KEYWORD(UNSIGNED, "unsigned"),
|
||||
KEYWORD(BINARY, "binary"),
|
||||
KEYWORD(LITERAL, "literal"),
|
||||
KEYWORD(BOOLEAN, "boolean"),
|
||||
KEYWORD(BIT, "bit"),
|
||||
|
@ -61,6 +61,7 @@
|
||||
%token WIDE "wide";
|
||||
%token LITERAL "literal";
|
||||
%token UNSIGNED "unsigned";
|
||||
%token BINARY "binary";
|
||||
|
||||
%token BOOLEAN "boolean";
|
||||
%token BIT "bit";
|
||||
@ -303,6 +304,7 @@ field_attribute : "hex" { $$ = SimpleField::Attrs::hex; }
|
||||
| "key" { $$ = SimpleField::Attrs::key; }
|
||||
| "unsigned" { $$ = SimpleField::Attrs::unsigned_; }
|
||||
| "literal" { $$ = SimpleField::Attrs::literal; }
|
||||
| "binary" { $$ = SimpleField::Attrs::binary; }
|
||||
;
|
||||
|
||||
%type <FieldPtr> switch_definition;
|
||||
|
Loading…
Reference in New Issue
Block a user