Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
namechars='',
**kwargs
):
super(JavaScriptBuffer, self).__init__(
text,
whitespace=whitespace,
nameguard=nameguard,
comments_re=comments_re,
eol_comments_re=eol_comments_re,
ignorecase=ignorecase,
namechars=namechars,
**kwargs
)
class JavaScriptParser(Parser):
def __init__(
self,
whitespace=None,
nameguard=None,
comments_re='\\/\\*(.|[\\r\\n])*?\\*\\/',
eol_comments_re='\\/\\/[^\\r\\n]*(\\r?\\n|\\r|$)',
ignorecase=False,
left_recursion=False,
parseinfo=True,
keywords=None,
namechars='',
buffer_class=JavaScriptBuffer,
**kwargs
):
if keywords is None:
keywords = KEYWORDS
namechars='',
**kwargs
):
super(CalcBuffer, self).__init__(
text,
whitespace=whitespace,
nameguard=nameguard,
comments_re=comments_re,
eol_comments_re=eol_comments_re,
ignorecase=ignorecase,
namechars=namechars,
**kwargs
)
class CalcParser(Parser):
def __init__(
self,
whitespace=None,
nameguard=None,
comments_re=None,
eol_comments_re=None,
ignorecase=None,
left_recursion=True,
parseinfo=True,
keywords=None,
namechars='',
buffer_class=CalcBuffer,
**kwargs
):
if keywords is None:
keywords = KEYWORDS
namechars='',
**kwargs
):
super(TextGrammarBuffer, self).__init__(
text,
whitespace=whitespace,
nameguard=nameguard,
comments_re=comments_re,
eol_comments_re=eol_comments_re,
ignorecase=ignorecase,
namechars=namechars,
**kwargs
)
class TextGrammarParser(Parser):
def __init__(
self,
whitespace=re.compile('[\\t ]+'),
nameguard=None,
comments_re=None,
eol_comments_re='^(#.*|\\s*)\\n',
ignorecase=None,
left_recursion=True,
parseinfo=True,
keywords=None,
namechars='',
buffer_class=TextGrammarBuffer,
**kwargs
):
if keywords is None:
keywords = KEYWORDS
namechars='',
**kwargs
):
super(RegexBuffer, self).__init__(
text,
whitespace=whitespace,
nameguard=nameguard,
comments_re=comments_re,
eol_comments_re=eol_comments_re,
ignorecase=ignorecase,
namechars=namechars,
**kwargs
)
class RegexParser(Parser):
def __init__(
self,
whitespace=None,
nameguard=None,
comments_re=None,
eol_comments_re=None,
ignorecase=None,
left_recursion=True,
parseinfo=True,
keywords=None,
namechars='',
buffer_class=RegexBuffer,
**kwargs
):
if keywords is None:
keywords = KEYWORDS
namechars='',
**kwargs
):
super(GameLogicBuffer, self).__init__(
text,
whitespace=whitespace,
nameguard=nameguard,
comments_re=comments_re,
eol_comments_re=eol_comments_re,
ignorecase=ignorecase,
namechars=namechars,
**kwargs
)
class GameLogicParser(Parser):
def __init__(
self,
whitespace=None,
nameguard=None,
comments_re=None,
eol_comments_re='#.*$',
ignorecase=None,
left_recursion=True,
parseinfo=True,
keywords=None,
namechars='',
buffer_class=GameLogicBuffer,
**kwargs
):
if keywords is None:
keywords = KEYWORDS
namechars='',
**kwargs
):
super(CalcBuffer, self).__init__(
text,
whitespace=whitespace,
nameguard=nameguard,
comments_re=comments_re,
eol_comments_re=eol_comments_re,
ignorecase=ignorecase,
namechars=namechars,
**kwargs
)
class CalcParser(Parser):
def __init__(
self,
whitespace=None,
nameguard=None,
comments_re=None,
eol_comments_re=None,
ignorecase=None,
left_recursion=True,
parseinfo=True,
keywords=None,
namechars='',
buffer_class=CalcBuffer,
**kwargs
):
if keywords is None:
keywords = KEYWORDS
namechars='',
**kwargs
):
super(CalcBuffer, self).__init__(
text,
whitespace=whitespace,
nameguard=nameguard,
comments_re=comments_re,
eol_comments_re=eol_comments_re,
ignorecase=ignorecase,
namechars=namechars,
**kwargs
)
class CalcParser(Parser):
def __init__(
self,
whitespace=None,
nameguard=None,
comments_re=None,
eol_comments_re=None,
ignorecase=None,
left_recursion=True,
parseinfo=True,
keywords=None,
namechars='',
buffer_class=CalcBuffer,
**kwargs
):
if keywords is None:
keywords = KEYWORDS
namechars='',
**kwargs
):
super(CalcBuffer, self).__init__(
text,
whitespace=whitespace,
nameguard=nameguard,
comments_re=comments_re,
eol_comments_re=eol_comments_re,
ignorecase=ignorecase,
namechars=namechars,
**kwargs
)
class CalcParser(Parser):
def __init__(
self,
whitespace=None,
nameguard=None,
comments_re=None,
eol_comments_re=None,
ignorecase=None,
left_recursion=True,
parseinfo=True,
keywords=None,
namechars='',
buffer_class=CalcBuffer,
**kwargs
):
if keywords is None:
keywords = KEYWORDS
namechars='',
**kwargs
):
super(LinneaBuffer, self).__init__(
text,
whitespace=whitespace,
nameguard=nameguard,
comments_re=comments_re,
eol_comments_re=eol_comments_re,
ignorecase=ignorecase,
namechars=namechars,
**kwargs
)
class LinneaParser(Parser):
def __init__(
self,
whitespace=None,
nameguard=None,
comments_re=None,
eol_comments_re='#.*?$',
ignorecase=None,
left_recursion=True,
parseinfo=True,
keywords=None,
namechars='',
buffer_class=LinneaBuffer,
**kwargs
):
if keywords is None:
keywords = KEYWORDS
namechars='',
**kwargs
):
super(EBNFBootstrapBuffer, self).__init__(
text,
whitespace=whitespace,
nameguard=nameguard,
comments_re=comments_re,
eol_comments_re=eol_comments_re,
ignorecase=ignorecase,
namechars=namechars,
**kwargs
)
class EBNFBootstrapParser(Parser):
def __init__(
self,
whitespace=None,
nameguard=None,
comments_re='\\(\\*((?:.|\\n)*?)\\*\\)',
eol_comments_re='#([^\\n]*?)$',
ignorecase=None,
left_recursion=False,
parseinfo=True,
keywords=None,
namechars='',
buffer_class=EBNFBootstrapBuffer,
**kwargs
):
if keywords is None:
keywords = KEYWORDS