Partho
|
faf592a725
|
Added most type checking. Entries seem printing mostly OK in table.
|
2025-04-08 18:12:11 -04:00 |
|
Partho
|
e42e537339
|
ran through derefenced most if not all of the pointers
|
2025-04-07 12:32:20 -04:00 |
|
Partho
|
e2aa9e7c12
|
fixed header for this branch
|
2025-04-04 21:40:13 -04:00 |
|
Partho
|
6a6677ccb5
|
checking diff
|
2025-04-04 21:12:26 -04:00 |
|
Partho
|
f6abbbd67f
|
updated to change strings to nodes in most locations
|
2025-04-04 20:24:05 -04:00 |
|
Partho
|
0eb0b8097c
|
updated lex to return the right values to the tokens (mostly table entries)
|
2025-04-03 20:05:53 -04:00 |
|
Partho
|
3186d363ed
|
fixed print symbol table to not print scopes used as flags
|
2025-04-02 20:31:00 -04:00 |
|
Partho
|
692025412e
|
fixed getAdInfo function
|
2025-04-02 13:16:56 -04:00 |
|
Partho
|
5e01b93af8
|
edited while loops in grammar to not look for comparison to NULL. Undefined instead
|
2025-03-31 20:42:17 -04:00 |
|
Partho
|
c61a87634c
|
fixed NULL check from getNextEntry
|
2025-03-31 20:31:53 -04:00 |
|
Partho
|
0593673d89
|
fixed the NULL checks for the incorrect ORs
|
2025-03-31 12:32:36 -04:00 |
|
Partho
|
57ba34ab37
|
added a bunch of NULL checks
|
2025-03-28 22:22:58 -04:00 |
|
Partho
|
227cec0b73
|
continuing. need fix of makefile
|
2025-03-28 18:02:40 -04:00 |
|
Partho Bhattacharya
|
cca01eb0b5
|
working on tabel
|
2025-03-28 14:49:17 -04:00 |
|
Partho Bhattacharya
|
37dedf1818
|
fixed some grammar rules
|
2025-03-28 14:16:49 -04:00 |
|
Partho Bhattacharya
|
36694a2f4a
|
updated lookups to return undefined entry if invalid
|
2025-03-28 13:47:53 -04:00 |
|
Partho Bhattacharya
|
2654308396
|
fixed expression rules
|
2025-03-28 02:14:50 -04:00 |
|
Partho Bhattacharya
|
38a1d0b091
|
added more helper functions
|
2025-03-28 02:02:44 -04:00 |
|
Partho Bhattacharya
|
d7f6272d37
|
still editing grammar
|
2025-03-27 23:37:04 -04:00 |
|
Partho Bhattacharya
|
c93534e9d4
|
added setRecSize
|
2025-03-27 20:10:14 -04:00 |
|
Partho Bhattacharya
|
8f1c7590bd
|
added get number of entries function
|
2025-03-27 19:23:05 -04:00 |
|
Partho Bhattacharya
|
3686a64948
|
symbol_table print almost done but have to figure out seg fault
|
2025-03-27 04:44:13 -04:00 |
|
Partho Bhattacharya
|
c4ad1547bf
|
fixed most symbol table structure issues. Working on print symbol table
|
2025-03-27 04:00:30 -04:00 |
|
Partho Bhattacharya
|
04418cc75d
|
added testing suite for binary and unary operations typechecking
|
2025-03-27 03:06:58 -04:00 |
|
Partho Bhattacharya
|
22c1a79e03
|
added more helper functions. still have to update print symbol table function
|
2025-03-26 18:42:09 -04:00 |
|
Partho Bhattacharya
|
27fb88f866
|
updated branch to not crash due to getType issue
|
2025-03-26 16:21:57 -04:00 |
|
Partho Bhattacharya
|
0ff894d571
|
fixed most things in the symbol table structure. Seeing core dumps and have to fix the print symbol table function
|
2025-03-26 15:21:42 -04:00 |
|
Partho Bhattacharya
|
0c8c3e30f3
|
adding function to get adinfo type
|
2025-03-26 11:17:45 -04:00 |
|
Partho Bhattacharya
|
d1f7041c31
|
added enum return function
|
2025-03-26 10:54:04 -04:00 |
|
Partho Bhattacharya
|
d817ceaf7d
|
added comments to symbol table.c for clarity. Note- we need to add scope reference to record instead of array reference. Additionally, in print symbol table.c we need to update for if an entry is a function, it should print out parameter->return type
|
2025-03-24 11:59:53 -04:00 |
|
Partho Bhattacharya
|
78b3539de6
|
changed 'string primitive' to 'string'
|
2025-03-14 22:47:29 -04:00 |
|
Partho Bhattacharya
|
1544f2b728
|
all compilation errors are gone. Function Types are properly entering Symbol Table. Some Type checking is taking place among expressions.
|
2025-03-14 22:42:08 -04:00 |
|
Partho Bhattacharya
|
78f1cd3fbb
|
Got symbol Table largely working (but without certain entries being added like functions or records)
|
2025-03-14 20:48:11 -04:00 |
|
Partho Bhattacharya
|
ead70170c0
|
added a remove entry function
|
2025-03-14 19:58:53 -04:00 |
|
Partho Bhattacharya
|
8a1477c04d
|
started updating values to types
|
2025-03-14 15:11:03 -04:00 |
|
Partho Bhattacharya
|
9361ed62e7
|
added a type check function in symbol table
|
2025-03-14 14:46:31 -04:00 |
|
Partho Bhattacharya
|
63534d1daf
|
restructured table, still have to update print table properly as well as grammar rules
|
2025-03-14 13:35:25 -04:00 |
|
Partho Bhattacharya
|
f0e0d7bdbc
|
still working through symbol_table to try and get it to compile soon but fixed issues with storing values and calling the right element of a struct
|
2025-03-14 12:04:53 -04:00 |
|
Partho Bhattacharya
|
392a4b3ba5
|
wrote up symbol table structure. Have to correct code and then add type checking grammar rules
|
2025-03-14 05:32:24 -04:00 |
|
Partho Bhattacharya
|
f0e03b2724
|
save point for tweaking symbol table--note won't be currently working
|
2025-03-14 04:24:03 -04:00 |
|
Partho Bhattacharya
|
3db6191969
|
fixed symbol_table entries not working
|
2025-03-12 10:27:48 -04:00 |
|
Partho Bhattacharya
|
2f04671123
|
updated get entry function to get string pointers instead of creating different strings. Also created a define function for top level scopes. Create Entry does not work for top level
|
2025-03-10 11:56:26 -04:00 |
|
Partho Bhattacharya
|
3a22ecbcdc
|
fixed declaration name
|
2025-03-07 15:50:15 -05:00 |
|
Partho Bhattacharya
|
d1c36566c7
|
still working on resolving type name issue
|
2025-03-07 15:22:10 -05:00 |
|
Partho Bhattacharya
|
f33b4566ea
|
fixed precedence testing
|
2025-03-07 13:40:29 -05:00 |
|
Partho Bhattacharya
|
6dcad07520
|
fixed precedence tests
|
2025-03-07 13:36:07 -05:00 |
|
Partho Bhattacharya
|
211919d70e
|
fixed location issues for error messages and scoping. Used location macros and the percent location as defined in guides to track location. Code may warrant cleanup as we don't need to manually keep track of locations ourselves any more through our line and column number variables
|
2025-03-06 02:05:47 -05:00 |
|
Partho Bhattacharya
|
f819a68ef7
|
runner and parser together add entries ok
|
2025-03-05 15:02:30 -05:00 |
|
Partho Bhattacharya
|
d34a4d3a55
|
Merge branch 'Sprint2-BlockHandlingGrammar-FE-t#34' of github.com:UB-CSE443/compiler-the-translators into Sprint2-BlockHandlingGrammar-FE-t#34
|
2025-02-28 18:19:49 -05:00 |
|
Partho Bhattacharya
|
63212a3d63
|
entries are working but not freeing memory so potential for leaks
|
2025-02-28 18:16:44 -05:00 |
|
Partho Bhattacharya
|
2695334db9
|
added print statements to gramamr rules to check for debugging
|
2025-02-28 15:42:43 -05:00 |
|
Partho Bhattacharya
|
2808a75dc9
|
edited some grammar rules. Still running into syntax errors
|
2025-02-28 14:03:53 -05:00 |
|
Partho Bhattacharya
|
046cb4b171
|
solved shift-reduce errors
|
2025-02-28 11:50:18 -05:00 |
|
Partho Bhattacharya
|
078b059d1c
|
parser compiling
|
2025-02-27 20:28:39 -05:00 |
|
Partho Bhattacharya
|
d609dd2dca
|
added skeleton rules and grammar to bison file
|
2025-02-27 20:03:50 -05:00 |
|
Partho Bhattacharya
|
fad44e21ea
|
added print table functionality to main in grammar.y with custom EOF input in '!'
|
2025-02-27 17:58:01 -05:00 |
|
Partho Bhattacharya
|
c85540afdf
|
updated testing for parser
|
2025-02-27 15:22:02 -05:00 |
|
Partho Bhattacharya
|
5626a5c371
|
testing why grammar does not work
|
2025-02-27 14:13:19 -05:00 |
|
Partho Bhattacharya
|
3ce8cbae59
|
Parser compiles from .y and .lex files
|
2025-02-26 15:57:08 -05:00 |
|
Partho Bhattacharya
|
046ccf194b
|
edited symbol table functions
|
2025-02-26 12:52:29 -05:00 |
|
Partho Bhattacharya
|
38b73bd551
|
added more symbol table functions
|
2025-02-26 11:58:46 -05:00 |
|
Partho Bhattacharya
|
987a086dae
|
added initial block rules
|
2025-02-25 01:43:22 -05:00 |
|
Partho Bhattacharya
|
cf25a1d7a4
|
commented out the call to print function to stop seg fault for now
|
2025-02-24 12:31:48 -05:00 |
|
Partho Bhattacharya
|
eb3452fec9
|
added code to print out positions of incorrect tokens
|
2025-02-21 15:25:21 -05:00 |
|
Partho Bhattacharya
|
e0ab5540da
|
edited symbol table node structure to remove strlength and value as they are not needed
|
2025-02-21 12:52:24 -05:00 |
|
Partho Bhattacharya
|
bf65f47b50
|
uncommented one part of symbol_table
|
2025-02-20 19:20:34 -05:00 |
|
Partho Bhattacharya
|
f2a0fbd1bc
|
added a simple test of symbol table and entry creation
|
2025-02-20 19:07:21 -05:00 |
|
Partho Bhattacharya
|
b21d7039a2
|
finished base code for table setup. Still have to check grammar
|
2025-02-20 17:50:25 -05:00 |
|
Partho Bhattacharya
|
5f35308361
|
continued working on table structure
|
2025-02-20 15:19:50 -05:00 |
|
Partho Bhattacharya
|
7836f6ecd0
|
started symbol table file
|
2025-02-20 01:18:22 -05:00 |
|
Partho Bhattacharya
|
57d52922d2
|
fixed comment issues
|
2025-02-19 02:18:05 -05:00 |
|
Partho Bhattacharya
|
292a8dbf8d
|
tested lexer with more files
|
2025-02-13 20:24:39 -05:00 |
|
Partho Bhattacharya
|
52a7c69dae
|
updated comment count
|
2025-02-13 20:02:42 -05:00 |
|
Partho Bhattacharya
|
3c6d3be9b4
|
testing int with yyleng
|
2025-02-13 19:28:38 -05:00 |
|
Partho Bhattacharya
|
90407da44c
|
ran make file to display all .tok files
|
2025-02-13 19:00:43 -05:00 |
|
Partho Bhattacharya
|
3596a5e21f
|
deleted make created files
|
2025-02-13 18:53:26 -05:00 |
|
Partho Bhattacharya
|
f64a4633f7
|
tweaked the lexer to always have DEBUG of 0 and updated .tok file logic in runner
|
2025-02-13 18:51:31 -05:00 |
|
Partho Bhattacharya
|
8758763ba0
|
removed unneeded files
|
2025-02-12 12:59:31 -05:00 |
|
Partho Bhattacharya
|
76cc3754c2
|
cleaned up repo and code in prep to push to dev
|
2025-02-12 12:41:23 -05:00 |
|
Partho Bhattacharya
|
0e3c0543d7
|
moved test files to the test folder
|
2025-02-12 00:08:41 -05:00 |
|
Partho Bhattacharya
|
3757434417
|
added comment functionality for lexer, expanded tests, and updated to identify empty strings
|
2025-02-10 23:41:37 -05:00 |
|
Partho Bhattacharya
|
f4a86f0de7
|
finished string and char updates and testing updates task 03
|
2025-02-10 13:12:46 -05:00 |
|
Partho Bhattacharya
|
6c3951b6ab
|
character identifier seems to work. Still working on strings. Updated tests to include more. Task01
|
2025-02-07 18:59:45 -05:00 |
|
Partho Bhattacharya
|
db66b04033
|
got some chars to identify and edited the simple literal test to include more examples -Task01
|
2025-02-07 15:40:48 -05:00 |
|
Partho Bhattacharya
|
145d3eeb85
|
updated lex file to have working code for all except for chars and strings. Also added the test files for just Int Testing and for testing for all literals (that is still failing for char and strings)
|
2025-02-07 14:31:10 -05:00 |
|
Partho Bhattacharya
|
cfd64648d9
|
Added simple rules for literals based on documentation. Still have to test them and refine further
|
2025-02-07 00:59:03 -05:00 |
|
Partho Bhattacharya
|
bfe8cc35dd
|
Removed Type Defs from lex doc
|
2025-02-05 16:56:27 -05:00 |
|
Partho Bhattacharya
|
dbb90b9dea
|
added COMMENT to typedefs.h
|
2025-02-05 16:48:48 -05:00 |
|
Partho Bhattacharya
|
5c9df58d1b
|
edited file to include comment lines and most of types in handout (except comments)
|
2025-02-04 19:43:11 -05:00 |
|
Partho Bhattacharya
|
3bdf25f4e2
|
Fixed test file so that incorrect tokens were the bottom lines
|
2025-02-04 18:58:15 -05:00 |
|
Partho Bhattacharya
|
528e144b1f
|
test file (not for correct code) but various correct and incorrect tokens
|
2025-02-04 18:40:50 -05:00 |
|