Skip to content

Commit

Permalink
experimental grammar for tables
Browse files Browse the repository at this point in the history
  • Loading branch information
mck1117 committed Jan 3, 2025
1 parent 8006725 commit d5a8483
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Bit: 'bit';
Array: 'array';
Scalar: 'scalar';
Autoscale: 'autoscale';
Resizable: 'resizable';

ArrayDimensionSeparator: 'x';

Expand Down Expand Up @@ -100,11 +101,19 @@ bitField: Bit identifier (',' QuotedString ',' QuotedString)? ('(' 'comment' ':'
unionField: 'union' ENDL+ fields 'end_union';
tableAxisSpec: ('min' integer 'max' integer|'num' integer);
tableField: 'table' identifier Resizable? ENDL+
'rows' tableAxisSpec scalarField ENDL+
'cols' tableAxisSpec scalarField ENDL+
'values' 'max' integer scalarField ENDL+
'end_table';
field
: scalarField
| arrayField
| bitField
| unionField
| tableField
;
fields
Expand Down

0 comments on commit d5a8483

Please sign in to comment.