Skip to content
ksherlock edited this page Dec 19, 2015 · 1 revision

The %code directive

The %code directive specifies a block of C code to be inserted at the end of the generated file. Multiple %code blocks may be present. See also, %include.

%include {
  int main(int arg, char **argv) {
    void *p = ParseAlloc(malloc);
    ...
    ParseFree(p, free);
  }
}
Clone this wiki locally