* SOFTWARE.
*/
#include "gmqcc.h"
-
int main(int argc, char **argv) {
- if (argc <= 1) {
- printf("Usage: %s infile.qc outfile\n", *argv);
- return -1;
- }
+ argc--;
+ argv++;
- struct lex_file *lex = lex_open(argv[1]);
- lex_debug(lex);
- parse (lex);
- lex_close(lex);
+ //const char *ifile = argv[0];
+ FILE *fp;
+ /*TODO: proper interface swith switches*/
+
+ asm_init ("test.qs", &fp);
+ asm_parse(fp);
+ asm_close(fp);
return 0;
}