Quick formatting updates

This commit is contained in:
Scarlett
2025-03-25 17:02:14 -04:00
parent d817ceaf7d
commit 94b80b024d
5 changed files with 532 additions and 505 deletions

View File

@ -5,14 +5,18 @@
#define TOK_LEN 3
#define ST_LEN 2
#define HELP \
"HELP:\nHow to run the alpha compiler:\n./alpha [options] program\nValid " \
"options:\n-tok output the token number, token, line number, and column " \
"number for each of the tokens to the .tok file\n-st output the symbol " \
"table for the program to the .st file\n-help print this message and exit " \
"the alpha compiler\n"
"HELP:\nHow to run the alpha compiler:\n./alpha [options] " \
"program\nValid " \
"options:\n-tok output the token number, token, line number, and " \
"column " \
"number for each of the tokens to the .tok file\n-st output the " \
"symbol " \
"table for the program to the .st file\n-help print this message " \
"and exit " \
"the alpha compiler\n"
#define SET_FLAG 1 // Used to set flags for arg types
#define INVALID \
"INVALID INPUT: Include a .alpha file or use -help for more inputs \n"
#define INVALID \
"INVALID INPUT: Include a .alpha file or use -help for more inputs \n"
#include <stdbool.h>
#include <stdio.h>
@ -22,7 +26,7 @@
#include "../tmp/flex.h"
#include "symbol_table.h"
//#include "typedefs.h"
// #include "typedefs.h"
#include "../tmp/grammar.tab.h"
extern int line_number, column_number;