| parrotcode: Untitled | |
| Contents | Compilers |

This file contains emit functions.
XXX Take the print_* function as a template to create the PBC-generating functions.
void print_key(key *k)k.
The total key is enclosed in square brackets,
and different key elements are separated by semicolons.
Example: ["hi";42]
"hi" and 42.void print_target(target *const t)t; if t has a key, that key is printed as well. Examples: S1, P1[42]
void print_constant(constant *c)c.void print_expr(lexer_state *const lexer, expression *const expr)expr.void print_expressions(expression *const expr)expr, if expr is not NULL. Expressions are separated by commas.void print_subs(struct lexer_state *const lexer)
|
|
|