diff options
Diffstat (limited to 'src/main.c')
| -rw-r--r-- | src/main.c | 22 |
1 files changed, 11 insertions, 11 deletions
@@ -14,30 +14,30 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see <https://www.gnu.org/licenses/>. */ -#include <stdio.h> -#include <stdlib.h> #include "array.h" #include "lexer.h" #include "parser.h" +#include <stdio.h> +#include <stdlib.h> int -main(int argc, char **argv) +main(int argc, char** argv) { if (argc < 2) { fprintf(stderr, "Usage: %s file.wsa\n", argv[0]); return EXIT_FAILURE; } - vm_t vm; - vm_init(&vm); + vm_t vm; + vm_init(&vm); - char *file_name = argv[1]; + char* file_name = argv[1]; - parser_t parser; - parser_init(&parser, file_name); + parser_t parser; + parser_init(&parser, file_name); - inst_t *insts = parser_parse(&parser); - vm_run(&vm, insts); + inst_t* insts = parser_parse(&parser); + vm_run(&vm, insts); - return EXIT_SUCCESS; + return EXIT_SUCCESS; } |
