You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
312 B

grammar t044trace;
options {
language = Python3;
}
@init {
self._stack = None
}
a: '<' ((INT '+')=>b|c) '>';
b: c ('+' c)*;
c: INT
{
if self._stack is None:
self._stack = self.getRuleInvocationStack()
}
;
INT: ('0'..'9')+;
WS: (' ' | '\n' | '\t')+ {$channel = HIDDEN;};