NAME ^

jsonout.c - JSON backend for PIRC

DESCRIPTION ^

Each vtable method is implemented by a private (static) function. This back-end emits a JSON representation of the source. Although JSON is quite a simple format, it is not very trivial to emit it. Due to some householding code, it isn't very straightforward (indention and commas). Some refactoring would be in order, once this back-end is finished.

JSON BACK END INTERNALS ^

HELPER METHODS ^

new_target()

add_target()

VTABLE METHODS ^

json_destroy()

Destructor for emit_data structure

init_json_vtable()

Initializes a vtable for the JSON back-end. Each of the vtable method slots is assigned a function address that implements that method.


parrot