Skip to content

%wildcard

ksherlock edited this page Dec 19, 2015 · 1 revision

The %wildcard directive

The %wildcard directive specifies a wildcard token which matches any token which cannot otherwise be matched in the current context.

%wildcard ANY.

// checks for balanced parenthesis, doesn't care about the actual contents.
list ::= LPAREN any_list RPAREN. 
any_list ::= ANY.
any_list ::= any_list ANY.
Clone this wiki locally