-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Description
I've been unable to find a good way of representing the following grammar:
CatchSwitchTerm -> CatchSwitchTerm
: 'catchswitch' 'within' Scope=ExceptionScope '[' Handlers=(Label separator ',')+ ']' 'unwind' UnwindTarget=UnwindTarget Metadata=(',' MetadataAttachment)+?
;
%interface UnwindTarget;
UnwindTarget -> UnwindTarget
: 'to' 'caller' -> UnwindToCaller
| Label
;As running the above grammar through Textmapper results in the following error:
$ make
ll.tm,2739: `Handlers` cannot be a list, since it precedes UnwindTarget
lalr: 0.221s, text: 0.521s, parser: 2170 states, 226KB
make: *** [Makefile:7: gen] Error 1
Any suggestions would be warmly welcome.
Metadata
Metadata
Assignees
Labels
No labels