Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
8eb9ebf
First commit
LuisLara-UH Mar 3, 2021
8bcad01
Add project structure
LuisLara-UH Sep 30, 2021
ad12d4a
ast added
Carlitonchin Sep 30, 2021
43353bc
lexer added (analizar caso string y comentarios) borrar zona de testi…
Carlitonchin Sep 30, 2021
bcc9452
comments oneline fixed (revisar los strings y comentarios multilinea,…
Carlitonchin Sep 30, 2021
d334524
parser semi-added (something fixed in lexer)
Carlitonchin Oct 1, 2021
ea576d5
some problems fixed in parser, (incomplete parser yet)
Carlitonchin Oct 1, 2021
d13341c
parser update (not finished yet)
Carlitonchin Oct 1, 2021
33a3459
parser ... .. ...
Carlitonchin Oct 8, 2021
e562648
working on parse
Carlitonchin Oct 8, 2021
59421c7
trabajando en base a pasar los tests del lexer
Carlitonchin Oct 12, 2021
a0e5d91
arreglando el string tokenizer
Carlitonchin Oct 12, 2021
57cbdfd
problema serio con los strings
Carlitonchin Oct 12, 2021
964fd88
las funciones pueden no tener parametros
Carlitonchin Oct 12, 2021
beb1926
arreglito en funciones
Carlitonchin Oct 12, 2021
d0bc1ab
arreglito en el parser
Carlitonchin Oct 12, 2021
e76348a
commit para resguardarme de la locura que voy a hacer, boolean expres…
Carlitonchin Oct 12, 2021
dcc3dc5
Coma , colgada en los parametros de una funcion arreglados
Carlitonchin Oct 12, 2021
857947c
parametros en el dispathc
Carlitonchin Oct 12, 2021
1169c5e
parser paso el test, solo falta arreglar los strings en el lexer
Carlitonchin Oct 12, 2021
6991f8b
some structures for semantic checker added
Carlitonchin Feb 22, 2022
5a431c9
some problems fixed with structures
Carlitonchin Feb 22, 2022
a061dbf
bypass added for types
Carlitonchin Feb 22, 2022
d927adc
especial types added
Carlitonchin Feb 22, 2022
f035875
Fill code generator
Feb 23, 2022
6e8b23a
testing semantic checker
Carlitonchin Feb 23, 2022
6d33489
Fix filling
Feb 23, 2022
f4bf392
Merge semantic to code_generator
Feb 23, 2022
f77e73c
working at variables definition
Carlitonchin Feb 23, 2022
d973ac3
Fill cool.sh
Feb 24, 2022
814d7fd
semantic checker finished
Carlitonchin Feb 24, 2022
6ab4e5d
fix merge conficts
Carlitonchin Feb 24, 2022
bd83709
reset testing
Carlitonchin Feb 24, 2022
96b0d47
testing lexer aceptable
Carlitonchin Feb 24, 2022
88d6d4d
all tests parser completed succefully
Carlitonchin Feb 24, 2022
ab03a60
line and column propertys added to ast objects
Carlitonchin Feb 24, 2022
b96fd17
fix big problem
Carlitonchin Feb 24, 2022
be65421
testing parser succesfully
Carlitonchin Feb 24, 2022
d76d718
column and line seted since parser to ast
Carlitonchin Feb 24, 2022
5e1a8ee
position tokens fixed
Carlitonchin Feb 24, 2022
29823eb
line and column of inherit class added
Carlitonchin Feb 25, 2022
fa60415
working at semantic checker tester
Carlitonchin Feb 25, 2022
d9878f4
Fill some semantic errors
Feb 25, 2022
ebcac3d
production added to get class type column
Carlitonchin Feb 25, 2022
0a19ee0
Fix some semantic errors
Feb 25, 2022
ef60516
Remove code generator bugs
Feb 25, 2022
637f0ff
isvoid1 passed
Carlitonchin Feb 25, 2022
bbaa64f
redefine method of parent class alowed
Carlitonchin Feb 25, 2022
859c6d6
dispathc undeclared method error printed
Carlitonchin Feb 25, 2022
7854a3f
dispatch method with incorrect number of params error printed correctly
Carlitonchin Feb 25, 2022
86e186b
it cant inherit from not declared type, (error printed correctly)
Carlitonchin Feb 25, 2022
489eaa5
error multiple type in diferent branch correctly printed
Carlitonchin Feb 25, 2022
dc2f2ab
semantic ready
Carlitonchin Feb 25, 2022
0c44c31
Add Informe
Feb 25, 2022
98d14e8
fix litle problems
Carlitonchin Feb 26, 2022
1669a0b
delete code gen folder
Carlitonchin Feb 26, 2022
80ac6b7
reverse
Carlitonchin Feb 26, 2022
353f18d
mergin
Carlitonchin Feb 26, 2022
2002b30
all test passed
Carlitonchin Mar 7, 2022
000cb2a
some changes at informe
Carlitonchin Mar 7, 2022
bf0c3a6
Minor fix
Mar 10, 2022
dafaede
Add informe
Mar 10, 2022
2fa4bb0
Update coolc.sh
Mar 11, 2022
95adb8d
update requirenmets
Carlitonchin Mar 11, 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
Binary file added .DS_Store
Binary file not shown.
166 changes: 83 additions & 83 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,83 +1,83 @@
name: Tests

on: [push, pull_request]

jobs:
lexer:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

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

- name: Install requirements
run: pip install -r requirements.txt

- name: Run tests
run: |
cd src
make clean
make
make test TAG=lexer

parser:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

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

- name: Install requirements
run: pip install -r requirements.txt

- name: Run tests
run: |
cd src
make clean
make
make test TAG=parser

semantic:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

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

- name: Install requirements
run: pip install -r requirements.txt

- name: Run tests
run: |
cd src
make clean
make
make test TAG=semantic

codegen:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

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

- name: Install requirements
run: pip install -r requirements.txt

- name: Install spim
run: sudo apt-get install spim

- name: Run tests
run: |
cd src
make clean
make
make test TAG=codegen
name: Tests
on: [push, pull_request]
jobs:
lexer:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
- name: Install requirements
run: pip install -r requirements.txt
- name: Run tests
run: |
cd src
make clean
make
make test TAG=lexer
parser:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
- name: Install requirements
run: pip install -r requirements.txt
- name: Run tests
run: |
cd src
make clean
make
make test TAG=parser
semantic:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
- name: Install requirements
run: pip install -r requirements.txt
- name: Run tests
run: |
cd src
make clean
make
make test TAG=semantic
codegen:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
- name: Install requirements
run: pip install -r requirements.txt
- name: Install spim
run: sudo apt-get install spim
- name: Run tests
run: |
cd src
make clean
make
make test TAG=codegen
Loading