Skip to content

Instantly share code, notes, and snippets.

@jordonbiondo
Created February 12, 2016 22:21
Show Gist options
  • Save jordonbiondo/05638a814e7170c386ae to your computer and use it in GitHub Desktop.
Save jordonbiondo/05638a814e7170c386ae to your computer and use it in GitHub Desktop.
test
words :
word |
words word {
char* foo = malloc(sizeof(char) * 1000); // just for testing;
sprintf(foo, "(append %s %s)", $1, $2);
$$ = foo;
} |
words end {
printf("%s", $1);
exit(0);
} |
end {
};
word : word_tok {
$$ = $1;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment