libmya 0.1.0
Library to parse Mya language.
|
Go to the source code of this file.
Functions | |
int64_t | eval_expression (hashtable_t *variables, module_t *module, ast_node_t *ast) |
Evaluates a mathetical expression. | |
void | eval_bitfield (mir_t *mir, module_t *module, ast_node_t *ast) |
Evaluates a bitfield statement. | |
void | eval_include (mir_t *mir, module_t *module, ast_node_t *ast) |
Evaluates an include statement. | |
void | eval_inst (mir_t *mir, module_t *module, ast_node_t *ast) |
Evaluates an inst statement. | |
void | eval_register (mir_t *mir, module_t *module, ast_node_t *ast) |
Evaluates a register statement. | |
void | eval_set (mir_t *mir, module_t *module, ast_node_t *ast) |
Evaluates a set statement. | |
void | eval_bitfield_spec (mir_bitfield_spec_t *spec, module_t *module, ast_node_t *ast, hashtable_t *variables) |
Evaluates a bitfield specification expression. | |
void eval_bitfield | ( | mir_t * | mir, |
module_t * | module, | ||
ast_node_t * | ast ) |
Evaluates a bitfield statement.
mir | The MIR struct where to add the intermediate represetation. |
module | Mya module where the statement is in. |
ast | The AST node where start the statement. |
Definition at line 9 of file eval_bitfield.c.
void eval_bitfield_spec | ( | mir_bitfield_spec_t * | spec, |
module_t * | module, | ||
ast_node_t * | ast, | ||
hashtable_t * | variables ) |
Evaluates a bitfield specification expression.
spec | The spec struct where to save the spec data. |
module | Mya module where the expression is in. |
ast | The AST node where start the bitfield specification. |
variables | The hashtable with the declared variables. |
Definition at line 10 of file eval_bitfield_spec.c.
int64_t eval_expression | ( | hashtable_t * | variables, |
module_t * | module, | ||
ast_node_t * | ast ) |
Evaluates a mathetical expression.
variables | The hashtable with the declared variables. |
module | Mya module where this expression is in. |
ast | The AST node where start the expression. |
Definition at line 15 of file eval_expression.c.
void eval_include | ( | mir_t * | mir, |
module_t * | module, | ||
ast_node_t * | ast ) |
Evaluates an include statement.
mir | The MIR struct where to add the intermediate represetation. |
module | Mya module where the statement is in. |
ast | The AST node where start the statement. |
Definition at line 8 of file eval_include.c.
void eval_inst | ( | mir_t * | mir, |
module_t * | module, | ||
ast_node_t * | ast ) |
Evaluates an inst statement.
mir | The MIR struct where to add the intermediate represetation. |
module | Mya module where the statement is in. |
ast | The AST node where start the statement. |
void eval_register | ( | mir_t * | mir, |
module_t * | module, | ||
ast_node_t * | ast ) |
Evaluates a register statement.
mir | The MIR struct where to add the intermediate represetation. |
module | Mya module where the statement is in. |
ast | The AST node where start the statement. |
Definition at line 7 of file eval_register.c.
void eval_set | ( | mir_t * | mir, |
module_t * | module, | ||
ast_node_t * | ast ) |
Evaluates a set statement.
mir | The MIR struct where to add the intermediate represetation. |
module | Mya module where the statement is in. |
ast | The AST node where start the statement. |
Definition at line 8 of file eval_set.c.