Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
@tatsumasu()
def _IDENTIFIER_(self): # noqa
self._pattern('[\\w$](?:[\\w\\d]|\\\\u[\\dA-Fa-f]{4})*')
@tatsumasu()
def _start_(self):
self._expression_()
self._check_eof()
@tatsumasu()
def _term_(self): # noqa
with self._choice():
with self._option():
self._void_()
with self._option():
self._gather_()
with self._option():
self._join_()
with self._option():
self._left_join_()
with self._option():
self._right_join_()
with self._option():
self._group_()
with self._option():
self._empty_closure_()
@tatsumasu()
def _kwparams_(self): # noqa
def sep0():
self._token(',')
def block0():
self._pair_()
self._positive_gather(block0, sep0)
@tatsumasu()
def _logical_(self): # noqa
with self._choice():
with self._option():
self._bitwise_()
with self._option():
self._boolean_()
with self._option():
self._comparison_()
self._error('no available options')
@tatsumasu()
def _string_(self): # noqa
self._STRING_()
@tatsumasu()
def _iteration_statement_(self): # noqa
with self._choice():
with self._option():
self._token('do')
self._statement_()
self._token('while')
self._token('(')
self._expression_sequence_()
self._token(')')
self._eos_()
with self._option():
self._token('while')
self._token('(')
self._expression_sequence_()
self._token(')')
self._statement_()
@tatsumasu()
def _default_clause_(self): # noqa
self._token('default')
self._token(':')
with self._optional():
self._statement_list_()
@tatsumasu()
def _BYTES_LITERAL_(self): # noqa
self._pattern("[bB][rR]?")
with self._group():
with self._choice():
with self._option():
self._SHORT_BYTES_()
with self._option():
self._LONG_BYTES_()
self._error("no available options")
@tatsumasu()
def _param_(self): # noqa
with self._choice():
with self._option():
self._NAME_()
with self._option():
self._token("*")
self._NAME_()
self._error("no available options")