Signed-off-by: NeilBrown <neil@brown.name>
active:Boolean = True
struct baz { a:number; b:Boolean; }
+ struct bat {
+ a:string
+ b:Boolean
+ }
+ struct bat2 a:string; b:Boolean
func main
do
for i:=0; then i=i+1; while i < 4:
print info[i].name, info[i].active, info[i].size[0]
info[0].thing.b = True
+ x:bat
+ x.a = "Hello"
###### output: structs
} }$
$*fieldlist
- FieldBlock -> { IN OptNL FieldLines OUT OptNL } ${ $0 = $<FL; // UNTESTED
- }$
+ FieldBlock -> { IN OptNL FieldLines OUT OptNL } ${ $0 = $<FL; }$
| { SimpleFieldList } ${ $0 = $<SFL; }$
| IN OptNL FieldLines OUT ${ $0 = $<FL; }$
- | SimpleFieldList EOL ${ $0 = $<SFL; // UNTESTED
- }$
+ | SimpleFieldList EOL ${ $0 = $<SFL; }$
FieldLines -> SimpleFieldList Newlines ${ $0 = $<SFL; }$
| FieldLines SimpleFieldList Newlines ${ {