Mercurial > hg > index.cgi
comparison lwbasic/main.c @ 30:bcd532a90e53
Renamed "compiler" to "parser" for more consistent terminology
author | lost@l-w.ca |
---|---|
date | Thu, 03 Feb 2011 21:19:11 -0700 |
parents | 87590f43e76d |
children |
comparison
equal
deleted
inserted
replaced
29:bc96cd02fbf4 | 30:bcd532a90e53 |
---|---|
90 "INPUTFILE", | 90 "INPUTFILE", |
91 "lwbasic, a compiler for a dialect of Basic\vPlease report bugs to lost@l-w.ca.", | 91 "lwbasic, a compiler for a dialect of Basic\vPlease report bugs to lost@l-w.ca.", |
92 PROGVER | 92 PROGVER |
93 }; | 93 }; |
94 | 94 |
95 extern void compiler(cstate *state); | 95 extern void parser(cstate *state); |
96 | 96 |
97 int main(int argc, char **argv) | 97 int main(int argc, char **argv) |
98 { | 98 { |
99 cstate state = { 0 }; | 99 cstate state = { 0 }; |
100 | 100 |
101 lw_cmdline_parse(&cmdline_parser, argc, argv, 0, 0, &state); | 101 lw_cmdline_parse(&cmdline_parser, argc, argv, 0, 0, &state); |
102 | 102 |
103 compiler(&state); | 103 parser(&state); |
104 | 104 |
105 exit(0); | 105 exit(0); |
106 } | 106 } |
107 | 107 |
108 void lwb_error(const char *fmt, ...) | 108 void lwb_error(const char *fmt, ...) |