Commit Graph

42 Commits

Author SHA1 Message Date
Nicolas Amaya
4c7002c263 changes to PDG seems to be working for if, while and for added some stuff for arrays but havent tested yet 2025-12-15 20:03:43 -07:00
Nicolas Amaya
046634109c Fixed bug in extractDefs & extractUses 2025-12-15 18:06:48 -07:00
Nicolas Amaya
c40bdeb411 Updated name from PDGTool to CIA 2025-12-14 17:54:03 -07:00
Nicolas Amaya
c70db58e20 Updated getAllLineNumbers function, was moving into cfg it returns a List<Integer> 2025-12-14 16:24:46 -07:00
Nicolas Amaya
9437b5e88d clean up of CFGBuilder removing prev strategy to get line number 2025-12-14 16:10:38 -07:00
Nicolas Amaya
6d02dc8fa7 Updated Line number to be a field of the Node of the CFG 2025-12-14 16:08:41 -07:00
Nicolas Amaya
35b5447c7d removed r which was breaking the code v2 2025-12-13 23:28:36 -07:00
Nicolas Amaya
8579c0bfc0 removed r which was breaking the code 2025-12-13 23:20:04 -07:00
Mann Patel
c574bf8100 Update README.md 2025-12-04 22:17:52 -07:00
Mann Patel
c021b1eabf we are moving form post dominators. 2025-12-04 18:41:14 -07:00
Mann Patel
ab9d95be1f Feat: Initial setup + PDG (Needs checking tho) 2025-11-28 22:03:34 -07:00
Mann Patel
cd1a698fa5 Clean Slate 2025-11-24 20:25:37 -07:00
Mann Patel
586db088b4 Tool Setup 2025-09-27 23:11:10 -06:00
Mann Patel
2fa2e0a575 Update: ExprParser 2025-09-27 23:07:32 -06:00
Nicolas Amaya
719447b9b0 File cleand up from unused code or TODO's 2025-09-27 22:51:41 -06:00
Nicolas Amaya
d6faf4356b working version <3 2025-09-27 19:55:27 -06:00
Mann Patel
54b9164f23 update fix few bugs 2025-09-27 17:07:46 -06:00
Mann Patel
73de7d74aa Delete main.java 2025-09-27 16:57:42 -06:00
Nicolas Amaya
6882d77cd7 undo for some files I deleted 2025-09-27 15:55:38 -06:00
Nicolas Amaya
4addbee422 Revert "cleanup parser for only required rules"
This reverts commit eccf1fa914.
2025-09-27 15:52:36 -06:00
Nicolas Amaya
eccf1fa914 cleanup parser for only required rules 2025-09-27 15:47:51 -06:00
Nicolas Amaya
9e858a98f3 removed part of the grammar for performance 2025-09-27 14:11:33 -06:00
Nicolas Amaya
be8499f7fe grammar completed V1, still needs testing 2025-09-27 13:28:28 -06:00
Mann Patel
c9f6667df5 added the antlr.jar file 2025-09-27 12:44:17 -06:00
Mann Patel
61da0168ef Delete ExprParser.g4 2025-09-27 12:39:45 -06:00
Nicolas Amaya
18dde2cb7f lil test 2025-09-27 00:06:03 -06:00
30206444
0863f71997 Merge branch 'main' of github.com:Patel-Mann/CPSC-499 2025-09-26 23:52:58 -06:00
30206444
a92583782c Grammar almost complete! 2025-09-26 23:52:51 -06:00
Mann Patel
b6d5e913ec Deprecated : This code is no longer supported 2025-09-26 22:00:50 -06:00
30206444
65bb1f8018 Updates on Grammar to match Antlr syntax 2025-09-26 19:21:46 -06:00
30206444
ee4a037373 Added:
1. Primitive Types
2. Array support
3. name/identifiers
4. Expressions AND OR XOR
2025-09-25 23:45:24 -06:00
30206444
852ba6c5e9 Merge branch 'main' of github.com:Patel-Mann/CPSC-499 2025-09-25 23:38:37 -06:00
30206444
8e6e68f327 Updated one letter from 'O' to 'o'. 2025-09-25 23:37:01 -06:00
Mandeep Moun
107c519f02 Seprate syntactic grammar started 2025-09-25 23:06:20 -06:00
Mandeep Moun
184793f0e2 Create ExprSyntactic.g4 2025-09-25 21:49:56 -06:00
Mann Patel
65822c9502 update main.java
Example Code to test our parser on
2025-09-24 18:57:24 -06:00
Mann Patel
ddc469da07 Bug: self-referencing grammer fixed
fixed self referencing grammer fixed and also connected the two file ,parser and grammer. initial parser code added
2025-09-24 18:43:46 -06:00
Mandeep Moun
a746021ce0 Update lexerA1.g4
Added 'assert' keyword.
2025-09-21 20:10:43 -06:00
Mandeep Moun
ef7e2865f2 Lexical gramr 95%
Almost complete, maybe need to add small things. Need to clarify some things with professor and update accorodingly.
2025-09-21 00:43:00 -06:00
Mandeep Moun
bc6c1027af Added Lexemes
Wrote some literals and keywords.
2025-09-19 23:25:40 -06:00
Mandeep Moun
e75d3e5797 created files
Added lexer.g4 and syntatic.g4 grammar files
2025-09-19 21:25:34 -06:00
Mandeep Moun
56b06cc1a9 Initial commit 2025-09-19 21:05:19 -06:00