Functions | |
def | p_error (p) |
def | p_expression_binop (p) |
def | p_expression_float (p) |
def | p_expression_group (p) |
def | p_expression_int (p) |
def | p_expression_name (p) |
def | p_expression_uminus (p) |
def | p_statement_assign (p) |
def | p_statement_expr (p) |
def | t_COMMENT (t) |
def | t_error (t) |
def | t_FLOAT (t) |
def | t_INT (t) |
def | t_newline (t) |
Variables | |
debug | |
False | |
dictionary | names = {} |
tuple | precedence |
string | t_DIVIDE = r'/' |
string | t_EQUALS = r'=' |
string | t_ignore = " \t" |
string | t_LPAREN = r'\(' |
string | t_MINUS = r'-' |
string | t_NAME = r'[a-zA-Z_][a-zA-Z0-9_]*' |
string | t_PLUS = r'\+' |
string | t_POWER = r'\^' |
string | t_RPAREN = r'\)' |
string | t_TIMES = r'\*' |
tuple | tokens |
write_tables | |
def femtools.tokrules.p_error | ( | p | ) |
def femtools.tokrules.p_expression_binop | ( | p | ) |
expression : expression PLUS expression | expression MINUS expression | expression TIMES expression | expression DIVIDE expression | expression POWER expression
def femtools.tokrules.p_expression_float | ( | p | ) |
def femtools.tokrules.p_expression_group | ( | p | ) |
def femtools.tokrules.p_expression_int | ( | p | ) |
def femtools.tokrules.p_expression_name | ( | p | ) |
def femtools.tokrules.p_expression_uminus | ( | p | ) |
def femtools.tokrules.p_statement_assign | ( | p | ) |
def femtools.tokrules.p_statement_expr | ( | p | ) |
def femtools.tokrules.t_COMMENT | ( | t | ) |
def femtools.tokrules.t_error | ( | t | ) |
def femtools.tokrules.t_FLOAT | ( | t | ) |
def femtools.tokrules.t_INT | ( | t | ) |
def femtools.tokrules.t_newline | ( | t | ) |
femtools.tokrules.debug |
femtools.tokrules.False |
dictionary femtools.tokrules.names = {} |
tuple femtools.tokrules.precedence |
string femtools.tokrules.t_DIVIDE = r'/' |
string femtools.tokrules.t_EQUALS = r'=' |
string femtools.tokrules.t_ignore = " \t" |
string femtools.tokrules.t_LPAREN = r'\(' |
string femtools.tokrules.t_MINUS = r'-' |
string femtools.tokrules.t_NAME = r'[a-zA-Z_][a-zA-Z0-9_]*' |
string femtools.tokrules.t_PLUS = r'\+' |
string femtools.tokrules.t_POWER = r'\^' |
string femtools.tokrules.t_RPAREN = r'\)' |
string femtools.tokrules.t_TIMES = r'\*' |
tuple femtools.tokrules.tokens |
femtools.tokrules.write_tables |