Commit graph

36 commits

Author SHA1 Message Date
ayrton ddc3875f56 Tried to deal with strange printing and created a problem
Took 1 hour 25 minutes
2023-11-24 09:31:18 -07:00
ayrton 1aef59672f Added extra options to the YAML
Took 33 minutes
2023-11-24 08:06:22 -07:00
aCompetentBean 15449c8899 Merge pull request 'Refactored ASTGenerator' (#3) from ayrton/refactor into main
Reviewed-on: #3
2023-11-24 07:34:46 -07:00
ayrton 5f6b7ab53b Added all atomic types
Took 38 minutes
2023-11-24 07:33:30 -07:00
ayrton 8cfbd08708 Added documentation for various generation functions
Took 33 minutes
2023-11-24 06:55:12 -07:00
Ayrton e2be922455 Fixed documentation for unary ops 2023-11-24 06:31:39 -07:00
Ayrton 5ea6eca0ba Fixed tests to account for unarys
- Refactored expressions
2023-11-23 13:40:20 -07:00
Ayrton 3dca7092fa Refactored the generate_expression method 2023-11-23 13:21:43 -07:00
Ayrton eba774dd05 Modified routine generation codestyle 2023-11-23 13:11:46 -07:00
Ayrton e0cd416435 Refactored generate_return 2023-11-23 13:01:13 -07:00
Ayrton 7380a89082 Modified code style in ast_generator initializations 2023-11-23 12:51:13 -07:00
ayrton 9ceb0b18be Fixed generation of declarations late in blocks
Took 37 minutes
2023-11-23 08:36:02 -07:00
ayrton be30f1d264 Error handling for some strange NoneType errors
Currently it seems like a top level argument node can be created. Need to check that soon, but not tonight. I am tired

Took 38 minutes
2023-11-22 20:33:34 -07:00
ayrton 1da53dba48 Fixed common generation errors
- Loops are now bound on the number of iterations by max-loop-iterations
- Names now get removed from the list of possible names when used
- Overflow errors in arithmetic are handled gracefully

Took 1 hour 13 minutes
2023-11-22 13:50:56 -07:00
ayrton 88ef999640 Fixed modulo operator in gazunparser
Took 9 minutes
2023-11-22 10:26:25 -07:00
ayrton 4d8609c38e Added correct comparisons and implemented all basic types
Took 27 minutes
2023-11-21 23:03:12 -07:00
ayrton 09010a4789 fixed bool ops to be in spec
Took 53 minutes
2023-11-21 22:34:24 -07:00
ayrton fb36aef06e Refactor and bugfix for integer division
Took 54 minutes
2023-11-21 21:39:04 -07:00
ayrton 561a9a5efa Added Brackets
Took 1 hour 13 minutes
2023-11-21 20:40:50 -07:00
ayrton 1e22f5a968 Added option to use english words as variable names
Took 15 minutes
2023-11-21 15:38:39 -07:00
ayrton d6f9a8684a Added future tests (failing with TODO)
Took 15 minutes
2023-11-21 10:34:24 -07:00
ayrton 54118b996d Fixed error that the fuzzer did not produce .out file
For some reason fuzzer.py:49 fails to execute. This is an open problem

Took 1 hour 7 minutes
2023-11-21 08:07:34 -07:00
ayrton ce7a660c00 Fixed bug in capturing python execution
Python execution requires the if __name__ == "__main__": so I added that to the codegen

Took 8 minutes
2023-11-20 20:40:25 -07:00
ayrton d211131c4e IT'S ALIIIIIIIIVE
Took 1 hour 15 minutes
2023-11-20 20:28:55 -07:00
Ayrton 05c8f92683 Added tests 2023-11-20 18:52:14 -07:00
ayrton 04675a01d6 Fixed anti-parsing errors in python
Took 1 hour 2 minutes
2023-11-19 20:49:25 -07:00
ayrton 4ee1770092 Fixed error that when assignments fail they still leave their tag
Took 39 minutes
2023-11-19 16:52:14 -07:00
ayrton 5e5d6aeba9 Fixed generation bug where no op would be generated
Took 54 minutes
2023-11-19 16:13:08 -07:00
ayrton e6c71b70a8 Tested refactor and implemented the python unparser
Took 38 minutes
2023-11-19 15:19:27 -07:00
ayrton 64a92871d9 Extracted the unparser logic to a superclass
Took 1 hour 1 minute
2023-11-19 14:40:57 -07:00
ayrton d3460d5c0a initial python unparsing
Took 31 minutes
2023-11-19 11:40:07 -07:00
ayrton eb8a47a5f1 Modified Unparsing Style
Took 30 minutes
2023-11-19 11:05:52 -07:00
ayrton ac146b4595 MVP setup and (sort of) working
Took 1 hour 58 minutes
2023-11-18 20:13:15 -07:00
ayrton f911c05e3d Refactoring of the ast_parser class
Took 48 minutes
2023-11-18 12:21:52 -07:00
ayrton 839ec97166 Complete overhaul of the generation methods
Took 6 hours 24 minutes
2023-11-18 10:59:00 -07:00
ayrton 2182395310 Initial Commit 2023-11-17 16:57:53 -07:00