Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cool Compiler #48

Open
wants to merge 44 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
d72a9e7
build(virtual enviroment): set a virtual enviroment
JCH97 Mar 11, 2021
fa73a25
feat(lexer): add tools for work in lexer. Intials steps
JCH97 Mar 11, 2021
7e56feb
feat(errors): add class for management errors
JCH97 Mar 11, 2021
14419a1
feat(utils): add errors management
JCH97 Mar 11, 2021
9a4270c
refactor(cool): move lexer and utils into cool folder
JCH97 Mar 13, 2021
129fca3
refactor(tokens): change tokens.py, insert token class and update key…
JCH97 Mar 13, 2021
d2634cd
refactor(lexer): update lexer.py, update coolc.h
JCH97 Mar 13, 2021
5dbdfab
test(requerimients): add ply in requerimients.txt
JCH97 Mar 13, 2021
0cdfe27
chore(test.utils): print output of subprocess.run for check errors
JCH97 Mar 13, 2021
04cc872
fix(coolc): update FILE
JCH97 Mar 13, 2021
13de328
fix(__main__): add __main__.py in cool module
JCH97 Mar 13, 2021
64c004c
revert(test.utils): remove print in utils
JCH97 Mar 13, 2021
b170644
feat(parser): add initial state for parser. update details into lexer
JCH97 Sep 20, 2021
e2b162a
chore(parser): test without parser. last test lexer fail
JCH97 Sep 20, 2021
3d7ebd0
chore(parser): update parser. update __main__.py
JCH97 Sep 20, 2021
535992a
refactor(parser): remove print(tokens). add parser lines
JCH97 Sep 20, 2021
496607d
refactor(parser): throw exception when catch error into parser
JCH97 Sep 20, 2021
64471a0
feat(parser): temporal commit
JCH97 Oct 12, 2021
957ae58
fix(lexer): remove print tokens
JCH97 Oct 12, 2021
4971718
fix(parser): test commit
JCH97 Oct 18, 2021
5642ec1
(testing): run lexer tests
JCH97 Oct 18, 2021
a3a1345
(testing): run lexer tests
JCH97 Oct 18, 2021
4574f2b
(feat): remove comments, run parser tests
JCH97 Oct 18, 2021
870a228
(feat): set explicit line number after lexer.
JCH97 Oct 18, 2021
81aa10c
fix(): details
JCH97 Oct 22, 2021
afdec0a
feat(semantic): add initial approach, add typeCollector, set right er…
JCH97 Oct 26, 2021
c162d96
fix(several-classes): remove errors from lexer, add right path for te…
JCH97 Oct 26, 2021
8c7020e
feat(semantic): add initial approach to typeChecker [not completed], …
JCH97 Oct 31, 2021
50fc21c
fix(semantic): set right imports
JCH97 Oct 31, 2021
9fc8d22
feat(semantic): add new types' management
JCH97 Nov 1, 2021
222a586
fix(semantic): visit new type in typeBuilder
JCH97 Nov 1, 2021
cdd644b
chore(semantic): remove prints
JCH97 Nov 1, 2021
b8a4d8f
fix(semantic): check tests
JCH97 Dec 23, 2021
2765c8b
fix(semantic): set right scope in FuncDeclarationNode
JCH97 Dec 23, 2021
6dd7592
fix(semantic): update VarDeclarationNode in typeChecker
JCH97 Dec 23, 2021
5e4b30a
feat(codegen): initial approach
JCH97 Jan 23, 2022
1c918e1
feat(codegen): initial approach to cil_visitor
JCH97 Feb 20, 2022
d89c19b
feat(): add BaseCilToMips. add mips_visitor
JCH97 Feb 24, 2022
e7cbc2a
fix(codegen): fix details
JCH97 Feb 25, 2022
d3f2b9b
fix(codegen): fix details
JCH97 Feb 25, 2022
2e10e12
docs(): fix details. add report.
JCH97 Feb 25, 2022
557b183
Revert "docs(): fix details. add report."
JCH97 Feb 25, 2022
d8d3412
docs(): fix details. add report. right commit.
JCH97 Feb 25, 2022
2173410
docs(): fix details in docs.
JCH97 Feb 26, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -408,3 +408,5 @@ dmypy.json

# Custom rules (everything added below won't be overriden by 'Generate .gitignore File' if you use 'Update' option)

node_modules
/2
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/.idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/.idea/.idea.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions .idea/.idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/.idea/inspectionProfiles/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/.idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/.idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions .idea/cool-compiler-2021.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/inspectionProfiles/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions .idea/main.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Python: Module",
"type": "python",
"request": "launch",
"module": "src"
}
]
}
14 changes: 14 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[packages]
pytest = "*"
pytest-ordering = "*"
ply = "*"

[dev-packages]

[requires]
python_version = "3.8"
101 changes: 101 additions & 0 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading