3 #include <st-compiler.h>
6 #include <st-universe.h>
14 #define BUF_SIZE 10000
17 main (int argc
, char *argv
[])
19 /* read input from stdin */
20 char buffer
[BUF_SIZE
];
23 while ((c
= getchar ()) != EOF
&& i
< (BUF_SIZE
- 1))
28 st_bootstrap_universe ();
30 STLexer
*lexer
= st_lexer_new (buffer
);
34 STNode
*node
= st_parser_parse (lexer
, &error
);
36 fprintf (stderr
, "error: %s\n", error
->message
);
41 printf ("-------------------\n");
43 st_print_method_node (node
);
45 st_node_destroy (node
);