diff options
author | kartofen <mladenovnasko0@gmail.com> | 2025-07-06 17:35:06 +0300 |
---|---|---|
committer | kartofen <mladenovnasko0@gmail.com> | 2025-07-06 17:35:06 +0300 |
commit | b65dd53885eabb8f39a3115039563edc08efb2b4 (patch) | |
tree | 75ec27e5cda989316b2498c913e0283c9ed08841 /demos/sample-files/parser-skeleton.c | |
parent | 0e0c0e0f26fcd669e45604fd5d9bcc2891a932a2 (diff) |
quick and easy semantic actions
Diffstat (limited to 'demos/sample-files/parser-skeleton.c')
-rw-r--r-- | demos/sample-files/parser-skeleton.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/demos/sample-files/parser-skeleton.c b/demos/sample-files/parser-skeleton.c index 031d829..f601369 100644 --- a/demos/sample-files/parser-skeleton.c +++ b/demos/sample-files/parser-skeleton.c @@ -41,10 +41,12 @@ int main(int argc, char **argv) { if(argc != 2) { fprintf(stderr, "ERROR: Not enough arguments\n"); - return 1; + return 1; } input = argv[1]; - - return lr_parser(); + + printf("INPUT: '%s'\n", input); + printf("OUTPUT: %d\n", lr_parser()); + return 0; } |