Created
February 12, 2016 22:21
-
-
Save jordonbiondo/05638a814e7170c386ae to your computer and use it in GitHub Desktop.
test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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