Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
@TOKEN(oct)
def t_OCT(t):
return t
@TOKEN(float)
def t_FLOAT(t):
t.lexer.begin('ipunchecked')
return t
@TOKEN(modulus)
def t_MODULUS(t):
t.lexer.begin('ipunchecked')
return t
@TOKEN(nbstr)
def t_NBSTR(t): # non-breaking string
t.type = type_if_reserved(t, 'NBSTR')
t.lexer.begin('ipunchecked')
return t
@TOKEN(path)
def t_PATH(t):
t.type = type_if_reserved(t, 'PATH')
t.lexer.begin('ipunchecked')
return(t)
@TOKEN(nbstr)
def t_NBSTR(t): # non-breaking string
t.type = type_if_reserved(t, 'NBSTR')
t.lexer.begin('ipunchecked')
return t
@TOKEN(minus)
def t_MINUS(t):
return t
@TOKEN(path)
def t_PATH(t):
t.type = type_if_reserved(t, 'PATH')
t.lexer.begin('ipunchecked')
return(t)
@TOKEN(url)
def t_URL(t):
t.type = type_if_reserved(t, 'URL')
t.lexer.begin('ipunchecked')
return(t)
@TOKEN(common_fn)
def t_COMMON_FN(t):
t.lexer.begin('ipunchecked')
return(t)