Skip to content
This repository was archived by the owner on Feb 14, 2021. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
228 commits
Select commit Hold shift + click to select a range
534ee49
[gitignore] Add .idea folder to gitignore
stdevMac Feb 23, 2020
3b2384d
Add compiler main entry
stdevMac Feb 23, 2020
d193860
add venv to .gitignore
stdevMac Feb 24, 2020
4860760
[coolc.sh] Update coolc.sh content
stdevMac Feb 24, 2020
6437505
[lexer][main] Update initialization pipeline
LazardStrife Feb 25, 2020
ec7cba2
Merge remote-tracking branch 'matcom/entrega-parser' into parser
stdevMac Feb 26, 2020
ca86af0
Add basic lexer
stdevMac Feb 26, 2020
559ca18
[grammar] Add grammar especification
stdevMac Feb 26, 2020
bb9f84d
Add basic ast types
stdevMac Feb 26, 2020
1833c8d
Add Object and Self to the ast
stdevMac Feb 26, 2020
91a0069
[ast] Add basic constant type
stdevMac Feb 26, 2020
dafeb08
[ast] Add constant types [integer,string,boolean]
stdevMac Feb 26, 2020
8f47b72
[ast] Add basic Expressin type
stdevMac Feb 26, 2020
e4654e8
[ast] Add [NewObject,IsVoid,Assignment] to ast
stdevMac Feb 26, 2020
3c866b1
Lexer ready
LazardStrife Feb 27, 2020
3171cdf
Merge remote-tracking branch 'origin/parser' into parser
LazardStrife Feb 27, 2020
ba86dfa
remove ast.py file
LazardStrife Feb 28, 2020
02e4559
[lexer] Update lexer, solve minor bugs
LazardStrife Feb 28, 2020
d92380d
[parser] Added parser and tested
LazardStrife Feb 28, 2020
67a69c3
Fixing issues
LazardStrife Feb 28, 2020
7520a8e
[parser] reformat parser code
stdevMac Feb 28, 2020
2571c1c
[main] Update pipeline for lexer errors
stdevMac Feb 28, 2020
d083b1f
[struct] update struct of project
stdevMac Feb 28, 2020
95f5408
[lexer] run all lexer test
stdevMac Feb 28, 2020
3fe4463
Fixed lexer repetition bug
LazardStrife Feb 29, 2020
aea41f7
[parser] not returning propertly the line of parser error
stdevMac Feb 29, 2020
e3553cf
Add integrants in readme
stdevMac Feb 29, 2020
3848d46
[doc] Update documentation of constributors
stdevMac Feb 29, 2020
05920ae
Merge remote-tracking branch 'origin/parser' into parser
stdevMac Feb 29, 2020
cfef4e9
Remove unused files
stdevMac Feb 29, 2020
a83f674
add requirements to project
stdevMac Feb 29, 2020
45aebe0
remove echo line in coolc.sh
stdevMac Feb 29, 2020
e8a0769
Merge remote-tracking branch 'matcom/testsDaniel' into parser
stdevMac Nov 2, 2020
a4450e9
Building ast from scratch
LazardStrife Nov 4, 2020
70696ad
Parser returning AST
LazardStrife Nov 5, 2020
03b7758
Add cool types
stdevMac Nov 7, 2020
ab68195
Optimize imports and code in main
stdevMac Nov 7, 2020
b3675a7
Update some code errors in lexer
stdevMac Nov 7, 2020
e274208
Update parser imports
stdevMac Nov 7, 2020
a407d05
Remove object type
stdevMac Nov 7, 2020
267be18
Parsing whith AST
LazardStrife Nov 7, 2020
86181d6
Merge remote-tracking branch 'origin/parser' into types
stdevMac Nov 7, 2020
d81bb67
reformat ast
stdevMac Nov 7, 2020
862cf70
Change visitor help to src
stdevMac Nov 7, 2020
6db4840
Reformat src/visitor.py to new visitor_helper
stdevMac Nov 7, 2020
0559f00
Update src/parsetab.py format
stdevMac Nov 7, 2020
c7aedfa
Remove redundant ( ) and reformat code
stdevMac Nov 7, 2020
7abbee0
Remove cmp folder
stdevMac Nov 7, 2020
2a7b455
Solve issues in tests
stdevMac Nov 8, 2020
cde2841
Add semantic checker file
stdevMac Nov 9, 2020
494a1be
Solve issues in ast func type
stdevMac Nov 9, 2020
c304e67
Update gitignore for pycharm
stdevMac Nov 9, 2020
32111ec
Add object as base type
stdevMac Nov 9, 2020
8f54f74
Add defined methods to basic types
stdevMac Nov 9, 2020
1bebb39
Add basic struct for semantic check
stdevMac Nov 9, 2020
4d553bd
Update inheritance in CoolType
stdevMac Nov 9, 2020
8736bb4
Add semantic checks to ast
stdevMac Nov 9, 2020
bab5c75
Add basic types names as var in types.py
stdevMac Nov 9, 2020
1b00740
Update mispelling in astNode
stdevMac Nov 9, 2020
3e336b0
Add check_feature for semantic check
stdevMac Nov 9, 2020
eb836f2
Update exception catch in compiler.py
stdevMac Nov 11, 2020
13413e2
Update feature checker in semantic checker
stdevMac Nov 11, 2020
9ff6a13
Visitor commit
LazardStrife Nov 11, 2020
a53b846
Merge remote-tracking branch 'origin/types' into parser
LazardStrife Nov 11, 2020
58fb3eb
Adelantado el chequeo de tipos de las expresiones
LazardStrife Nov 12, 2020
45eeeb5
Add continue in method for check features
stdevMac Nov 12, 2020
95cd936
Add graph class for cyclic dependencies
stdevMac Nov 12, 2020
b101382
Add cyclic class inheritance check in semantic check
stdevMac Nov 12, 2020
c75d694
Merge remote-tracking branch 'origin/parser' into types
stdevMac Nov 12, 2020
778784a
Fixed inherited function problems
LazardStrife Nov 13, 2020
1be1806
Updated expressions return type checking
LazardStrife Nov 13, 2020
3487eeb
Another update in expressions type checking
LazardStrife Nov 13, 2020
0724360
Updated again expression types checking, only dispatch case left
LazardStrife Nov 13, 2020
1f8efac
Expressions type checking completed, only debug and tests left
LazardStrife Nov 14, 2020
ce64823
Remove ast print in compiler.py
stdevMac Nov 15, 2020
16e8f80
Print and check semantic errors in ast
stdevMac Nov 15, 2020
0bf3760
Set line and column number for ast nodes
stdevMac Nov 15, 2020
1da9aad
Add method for get column number for parsed node
stdevMac Nov 15, 2020
f28bfb9
Update some returned errors for semantic check
stdevMac Nov 15, 2020
0e79926
Update semantic errors for inheritance
stdevMac Nov 15, 2020
a66d56a
Update visited nodes in dfs in graph
stdevMac Nov 15, 2020
2a650da
Update Function lineNumber in ast
stdevMac Nov 15, 2020
3d3eee4
Update return type when set attribute
stdevMac Nov 15, 2020
06a6bab
Update inheritance errors
stdevMac Nov 15, 2020
6e82e5a
Re-order add method for CoolType
stdevMac Nov 15, 2020
481025a
Update parameter return line Number
stdevMac Nov 15, 2020
24d8f52
Add method for check params
stdevMac Nov 15, 2020
8dce03e
Merge remote-tracking branch 'origin/parser' into types
stdevMac Nov 15, 2020
7fc88f2
Reformat code in semantic.py
stdevMac Nov 15, 2020
35f35d3
Solve merge issues in type_defined
stdevMac Nov 15, 2020
39414a0
Re-Add error message for methods error
stdevMac Nov 15, 2020
e8c60e8
Cil geberator started with types section completed, also some bugs fi…
LazardStrife Nov 16, 2020
9674fb6
Cil data section completed
LazardStrife Nov 16, 2020
e195f80
Last commit
LazardStrife Nov 16, 2020
e32c850
CIL basic functions code completed, now working in defined classes fu…
LazardStrife Nov 16, 2020
a723817
Refactor some code
stdevMac Nov 16, 2020
4c0cde5
return attrs as list
stdevMac Nov 16, 2020
45c3e69
Merge remote-tracking branch 'origin/parser' into types
stdevMac Nov 16, 2020
52411c6
CIL completed, lots of debuging left
LazardStrife Nov 17, 2020
c856eae
Add parser rule
stdevMac Nov 17, 2020
16da8cf
Update error messages
stdevMac Nov 17, 2020
4d8b4f4
Update test column
stdevMac Nov 17, 2020
cbed1e0
Update semantic checker for new errors
stdevMac Nov 17, 2020
4183b98
Merge remote-tracking branch 'origin/parser' into types
stdevMac Nov 17, 2020
a8bc372
return attrs as list in defined types
stdevMac Nov 17, 2020
f1d25e1
Set proper linenumber to Ast nodes
stdevMac Nov 17, 2020
6183d18
Update error messages expression check
stdevMac Nov 17, 2020
1a59a44
Refactor ast nodes to use Location in expressions
stdevMac Nov 17, 2020
06e7643
Cil generation completed and debuged
LazardStrife Nov 18, 2020
f06aabe
Attributes expression check bug fixed
LazardStrife Nov 18, 2020
6647516
Operands coordinates bug fixed
LazardStrife Nov 18, 2020
a26c267
Bug fixed when you try to set a value of a child type
LazardStrife Nov 18, 2020
63ca912
Update returning lines in parser
stdevMac Nov 18, 2020
77eb681
Update error message in semantic check
stdevMac Nov 18, 2020
8075299
Again fixed problems with operators precedence
LazardStrife Nov 18, 2020
67ee6a3
Fixed some bugs from lexer and parser
LazardStrife Nov 18, 2020
8f964c5
Fixed parser issue
LazardStrife Nov 18, 2020
53a9c73
Simple changes
LazardStrife Nov 18, 2020
fa72170
Update semantic errors
stdevMac Nov 18, 2020
18d7d49
Add semantic tester
stdevMac Nov 18, 2020
e61c7e4
Merge remote-tracking branch 'origin/parser' into types
stdevMac Nov 18, 2020
dbc4ce6
Tabs problem resolved
LazardStrife Nov 18, 2020
fde2397
Some changes
LazardStrife Nov 18, 2020
42c4df8
Another change in parser triying to fix equals semantica case
LazardStrife Nov 18, 2020
4cf63b8
Solve merge issues
stdevMac Nov 18, 2020
9da931b
Solve minor errors in return error
stdevMac Nov 18, 2020
dc5eb0a
Update error in add method
stdevMac Nov 18, 2020
e91dc1f
Update tester
stdevMac Nov 18, 2020
9644073
Merge remote-tracking branch 'origin/parser' into types
stdevMac Nov 18, 2020
d3194ff
Fixed problems againgit add .!
LazardStrife Nov 18, 2020
ded0431
Update index in parser.py
stdevMac Nov 18, 2020
a0441e5
Catch errors in semantic.py
stdevMac Nov 18, 2020
b9decae
Parser herarquics bug fixed
LazardStrife Nov 18, 2020
7c62dd0
Solve self issue in semantic
stdevMac Nov 18, 2020
3b9bd2b
Merge remote-tracking branch 'origin/parser' into types
stdevMac Nov 18, 2020
a2bff63
Save loop error
stdevMac Nov 18, 2020
5a291d3
Merge remote-tracking branch 'origin/parser' into types
stdevMac Nov 18, 2020
f8a9a74
Final commit to start mips .. some semantic errors fixed
LazardStrife Nov 19, 2020
b329d97
Merge remote-tracking branch 'origin/parser' into types
stdevMac Nov 19, 2020
3b29d88
Merge remote-tracking branch 'origin/parser' into types
stdevMac Nov 19, 2020
427e3f4
Merge remote-tracking branch 'origin/parser' into types
stdevMac Nov 19, 2020
3c9cdda
Merge remote-tracking branch 'origin/parser' into types
stdevMac Nov 19, 2020
47021b7
Merge remote-tracking branch 'origin/parser' into types
stdevMac Nov 19, 2020
f843524
Merge remote-tracking branch 'origin/parser' into types
stdevMac Nov 19, 2020
56cef2e
Update parser rules
stdevMac Nov 19, 2020
bc06901
Add get_attributtes_as_dict in CoolType object
stdevMac Nov 19, 2020
86c628d
Update code gen for new method in CoolType
stdevMac Nov 19, 2020
19a016a
All cil bugs fixed
LazardStrife Nov 18, 2020
4464c25
Update error message in semantic.py
stdevMac Nov 19, 2020
5cd6b6b
Remove unused arithmetic test
stdevMac Nov 19, 2020
3fbbf2b
Remove semantic automatic tester
stdevMac Nov 19, 2020
4ff4200
Remove .idea folder
stdevMac Nov 19, 2020
ec7af41
Add ./src/.idea/ to gitignore
stdevMac Nov 19, 2020
ebf804b
Basic reformating in file of code generation
stdevMac Nov 19, 2020
4f510d8
Rename code_generation to cil_generator
stdevMac Nov 19, 2020
58a7f58
Update compiler to use new files
stdevMac Nov 19, 2020
58ef22f
Refactor mips generator to new file
stdevMac Nov 19, 2020
1c9f595
Merge remote-tracking branch 'origin/parser' into types
stdevMac Nov 19, 2020
d50c58f
Almost nothing
LazardStrife Nov 20, 2020
770fe4e
...
LazardStrife Nov 20, 2020
81b5ee7
...
LazardStrife Nov 20, 2020
d8d7b09
Merge remote-tracking branch 'origin/types' into parser
LazardStrife Nov 20, 2020
35f6c21
Mips generator completely functional, finding bugs
LazardStrife Nov 25, 2020
86b2dd3
Merge remote-tracking branch 'matcom/entrega-final' into parser
LazardStrife Nov 25, 2020
ab09d13
Fixed plenty of bugs in mips generation
LazardStrife Nov 25, 2020
7def65f
Update compiler for tests
stdevMac Nov 25, 2020
67ac818
Another bug fixed in let instructions mips generation
LazardStrife Nov 25, 2020
9dad85f
Merge remote-tracking branch 'origin/parser' into types
stdevMac Nov 25, 2020
27a7d55
Fixed mips heritance problem with overrided methods
LazardStrife Nov 25, 2020
25335ac
Fixed mips copy node bug when trying to copy a basic type object
LazardStrife Nov 25, 2020
cd1d4d1
Merge remote-tracking branch 'origin/parser' into types
stdevMac Nov 26, 2020
a7000fd
Merge remote-tracking branch 'origin/parser' into types
stdevMac Nov 26, 2020
2824eeb
Fixed other major bugs
LazardStrife Nov 26, 2020
d4cfa29
Rolled back to stable version
LazardStrife Nov 26, 2020
7b53705
Fixed minnor bug when trying to collect attributes
LazardStrife Nov 26, 2020
45dfff1
Merge remote-tracking branch 'origin/parser' into types
stdevMac Nov 26, 2020
022f506
Merge remote-tracking branch 'origin/parser' into types
stdevMac Nov 26, 2020
a548393
Merge remote-tracking branch 'origin/parser' into types
stdevMac Nov 26, 2020
29f8907
Fixed bug in semantic.py when overwriting return types
LazardStrife Nov 30, 2020
cb03a4a
Remove unused files
stdevMac Dec 1, 2020
d0932c7
Update python in cool.sh
stdevMac Dec 1, 2020
ad46c2c
Add print to test-checker
stdevMac Dec 1, 2020
75bb906
Remove print in test
stdevMac Dec 1, 2020
08ef48b
Reset test
stdevMac Dec 1, 2020
7802a12
Remove unused file
stdevMac Dec 1, 2020
e7895fb
Remove unused test
stdevMac Dec 1, 2020
65c8e8c
Merge remote-tracking branch 'origin/parser' into entrega
stdevMac Dec 1, 2020
6a01ee0
Add print to test
stdevMac Dec 1, 2020
696c6ee
Update informe
stdevMac Dec 1, 2020
1ed8178
Add base inform in txt format
stdevMac Dec 1, 2020
e1ca71a
Fixed integer complement malfunction
LazardStrife Dec 2, 2020
e112811
Fixed bugs when trying to get or set an attribute of pointer type. Al…
LazardStrife Dec 2, 2020
28922bb
Fixed case malfunction ... case branchs types needed fathership confi…
LazardStrife Dec 3, 2020
18b42d5
Fixed problem of taking too much memory because innecesary memory rea…
LazardStrife Dec 3, 2020
c3eee99
Abort message forgotten!
LazardStrife Dec 3, 2020
4ddecbe
some commit
LazardStrife Dec 4, 2020
3dd0813
Print compiler_output in tests
stdevMac Dec 5, 2020
273ce24
Print compiler_output in compare_error
stdevMac Dec 5, 2020
a46f9ef
Refactor error print
stdevMac Dec 5, 2020
b7fcbc0
Set up python3 in cool.sh
stdevMac Dec 5, 2020
5c01ee2
Run tests using python instead cool.sh
stdevMac Dec 5, 2020
0bec987
Print test in travis.yml
stdevMac Dec 5, 2020
d417ed8
Reset test position in travis
stdevMac Dec 5, 2020
0961bd8
Remove travis file
stdevMac Dec 5, 2020
421f420
Set break point in compiler.py
stdevMac Dec 5, 2020
03178a7
Test of python print
stdevMac Dec 6, 2020
c35670b
Set up compiler input for tests
stdevMac Dec 6, 2020
ce0fe35
Reworked cil and mips generation aiming for best performance. Changed…
LazardStrife Dec 7, 2020
ed9a2c7
Corrected unnecesary locals creation. Locals save and load proces red…
LazardStrife Dec 7, 2020
5d3ebf0
Case instructions fixed ... we where selecting the case branch in the…
LazardStrife Dec 7, 2020
885626a
Set up python version to 3.8
stdevMac Dec 7, 2020
4e91d2d
Fixed int default initialization to zero and params unnecesary big amout
LazardStrife Dec 7, 2020
5488aa1
Reduced unnecesary locals write in stack
LazardStrife Dec 7, 2020
9fe5250
Merge remote-tracking branch 'origin/parser' into entrega
stdevMac Dec 8, 2020
260db12
Added report!
LazardStrife Dec 8, 2020
89dce11
Instance attributes initialization process optimized and is taken pla…
LazardStrife Dec 9, 2020
2f533bf
Fixed bug in case instructions ... value was copyed when should be mo…
LazardStrife Dec 9, 2020
40c8756
Locals status now is saved and loaded to and from the stack by one un…
LazardStrife Dec 11, 2020
b89a2e2
Optimized code by creating a MIPS function for each CIL node, so MIPS…
LazardStrife Dec 12, 2020
8e96ff8
Optimized process of dynamically finding correct instance function re…
LazardStrife Dec 12, 2020
c3148e4
Fixing empty string input problem
LazardStrife Dec 12, 2020
361c761
Update compiler.py
stdevMac Dec 13, 2020
9986345
Commit to merge
LazardStrife Dec 12, 2020
3e841c0
Merge branch 'entrega-final' into entrega
stdevMac Dec 13, 2020
c1aee28
Report reworked!
LazardStrife Dec 13, 2020
dc76533
Merge remote-tracking branch 'origin/entrega-final' into entrega
stdevMac Dec 13, 2020
18bfac8
Update gitignore
stdevMac Dec 13, 2020
2ebf47a
Reformat some code
stdevMac Dec 13, 2020
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
8 changes: 8 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ jobs:

- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.8

- name: Install requirements
run: pip install -r requirements.txt
Expand All @@ -30,6 +32,8 @@ jobs:

- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.8

- name: Install requirements
run: pip install -r requirements.txt
Expand All @@ -49,6 +53,8 @@ jobs:

- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.8

- name: Install requirements
run: pip install -r requirements.txt
Expand All @@ -68,6 +74,8 @@ jobs:

- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.8

- name: Install requirements
run: pip install -r requirements.txt
Expand Down
Loading