SDF3 core syntax allows nonsensical rules
I wrote the following SDF3 (notice the missing
-CFon theTypesort at the start):Type.CollTy = ItemKind-CF CollectionKind-CF LAYOUT?-CF OptGraphRef-CFWhich happily translates to SDF2:
<ItemKind-CF> <CollectionKind-CF> <LAYOUT?-CF> <OptGraphRef-CF> -> Type {cons("CollTy")}Which doesn’t do anything. Shouldn’t that be a (syntax) error instead? I’d expect a red squigly and a message
Submitted by Jeff Smits on 9 April 2015 at 15:22expected "-CF" or "-LEX" not ".".