Skip to content

Add natural translation for DSL #574

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

Open
wants to merge 113 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 64 commits
Commits
Show all changes
113 commits
Select commit Hold shift + click to select a range
d1a544b
Made first version for translation using !natural_language
BrentBlanckaert Dec 11, 2024
d0cf7de
forgot to push actual file
BrentBlanckaert Dec 11, 2024
0334e1f
fixed linting
BrentBlanckaert Dec 11, 2024
c1114bc
fixed pyright issue
BrentBlanckaert Dec 11, 2024
c61b563
add test for unit-test
BrentBlanckaert Dec 11, 2024
145deae
Fixed some bugs and wrote another test for io
BrentBlanckaert Dec 12, 2024
e14c758
setup main
BrentBlanckaert Dec 12, 2024
65fb097
Made a small fix
BrentBlanckaert Dec 12, 2024
e941ef6
Tested an extra edge case
BrentBlanckaert Dec 13, 2024
eef397b
Cleaned up code and added extra cases.
BrentBlanckaert Dec 13, 2024
30bcdcc
Started on usage with translation table.
BrentBlanckaert Dec 13, 2024
4230003
Added support for translation-table in global scope, tab-scope and co…
BrentBlanckaert Dec 14, 2024
1ddef15
Cleaned up code and fixed pyright issue
BrentBlanckaert Dec 15, 2024
5dabc80
fixed tests and added more
BrentBlanckaert Dec 15, 2024
69a77d3
fixed some small issues
BrentBlanckaert Dec 15, 2024
eb62f92
made some small fixes
BrentBlanckaert Dec 17, 2024
6e258cf
wrote an extra test
BrentBlanckaert Dec 17, 2024
1db1db2
fix spelling mistake
BrentBlanckaert Dec 17, 2024
4dedd8c
fixed linting issue
BrentBlanckaert Dec 17, 2024
b9786c2
increasing test coverage
BrentBlanckaert Dec 17, 2024
c63e391
removed some redundant code
BrentBlanckaert Dec 19, 2024
a35c49a
Adding a few comments
BrentBlanckaert Dec 19, 2024
10b0eb3
Cleaned up code some more and added extra cases for input and output …
BrentBlanckaert Dec 28, 2024
3539227
Updated statement/expression case and added programmingLanguageMap fo…
BrentBlanckaert Dec 28, 2024
e1180f9
started added new json schema
BrentBlanckaert Dec 28, 2024
466ec16
Made some changes to schema
BrentBlanckaert Dec 28, 2024
49079a0
fixed some bugs in the schema
BrentBlanckaert Dec 29, 2024
4174beb
fixed some bugs and fixed the tests
BrentBlanckaert Dec 29, 2024
1a79a82
fixed an edge case and made an extra test for it.
BrentBlanckaert Dec 29, 2024
81ce161
added the actual writing to a file.
BrentBlanckaert Dec 29, 2024
64a00cd
changed formatter to jinja
BrentBlanckaert Jan 4, 2025
88a2ede
small cleanup
BrentBlanckaert Jan 4, 2025
e6e548c
moved tests to new file
BrentBlanckaert Jan 31, 2025
95f8524
Small cleanup
BrentBlanckaert Jan 31, 2025
9ac66cb
fix isort
BrentBlanckaert Jan 31, 2025
b7012d3
got rid of usage of instanceof
BrentBlanckaert Feb 18, 2025
f630a05
fixed test
BrentBlanckaert Feb 19, 2025
a5d7f61
Made small variable name change
BrentBlanckaert Feb 19, 2025
1b9775d
rewrote the pre-processor
BrentBlanckaert Feb 22, 2025
fe62210
fixed tests
BrentBlanckaert Feb 22, 2025
dec7057
removed some prints
BrentBlanckaert Feb 22, 2025
94ea109
cleaned up the code some more
BrentBlanckaert Feb 23, 2025
c75d4a7
fixed linting issue and removed more redundant code.
BrentBlanckaert Feb 23, 2025
7dac7d6
Removed some checks that are no longer used
BrentBlanckaert Feb 23, 2025
86c6421
Wat comments toegevoegd
BrentBlanckaert Feb 23, 2025
e2d9d69
gebruik van instanceof zoveel mogelijk vermeden
BrentBlanckaert Feb 23, 2025
9a540a6
Fixed linting en typing
BrentBlanckaert Feb 23, 2025
c7d5787
removed an unused field.
BrentBlanckaert Feb 23, 2025
7681932
Fixed small bug
BrentBlanckaert Feb 24, 2025
820c36a
Changed a name
BrentBlanckaert Feb 24, 2025
eecc7b1
Merged all translations maps immediately
BrentBlanckaert Feb 27, 2025
14e16db
re-added validator
BrentBlanckaert Mar 4, 2025
885aa48
Fixed typing issues
BrentBlanckaert Mar 4, 2025
d06a55c
added test for error handling
BrentBlanckaert Mar 4, 2025
b7c8c34
added an extra test for syntax errors
BrentBlanckaert Mar 4, 2025
470e28c
fix linting
BrentBlanckaert Mar 4, 2025
94a766f
Added immediate link from preprocessor to tested.
BrentBlanckaert Mar 7, 2025
4629134
Fixed bug for a lot of tests
BrentBlanckaert Mar 7, 2025
f9d311d
Small cleanup
BrentBlanckaert Mar 7, 2025
f7c65cb
made a few more tests
BrentBlanckaert Mar 7, 2025
a539053
fixed linting issues
BrentBlanckaert Mar 7, 2025
c72190c
fixed small issue regarding lists of tabs
BrentBlanckaert Mar 12, 2025
0959919
removed field to serves no purpose anymore
BrentBlanckaert Mar 12, 2025
8aee618
fixed linting
BrentBlanckaert Mar 12, 2025
f668535
Found another edge case that wasn't covered
BrentBlanckaert Mar 12, 2025
b62bfc3
using pythonic code
BrentBlanckaert Mar 12, 2025
9f4a84f
Fixed a small bug with the nat_lang_indicators
BrentBlanckaert Mar 12, 2025
23d9b01
Added another check
BrentBlanckaert Mar 12, 2025
e78c518
Fxed linting
BrentBlanckaert Mar 12, 2025
3ed7491
forgot a tab
BrentBlanckaert Mar 12, 2025
2027194
fixed problem when no translations are used
BrentBlanckaert Mar 14, 2025
9055b90
kleine optimalisatie
BrentBlanckaert Mar 14, 2025
3f20d10
Made attempt for stdout/stderr
BrentBlanckaert Mar 18, 2025
7952b2d
made new version for translations
BrentBlanckaert Mar 20, 2025
3e9f27a
used a different way to convert to yamlObject
BrentBlanckaert Mar 20, 2025
fc6dbc5
cleaned up code
BrentBlanckaert Mar 21, 2025
cbcb263
test why it test don't work in github
BrentBlanckaert Mar 21, 2025
16f5527
adding more prints
BrentBlanckaert Mar 21, 2025
f4c55d7
adding more prints
BrentBlanckaert Mar 21, 2025
d9c115b
trying something else
BrentBlanckaert Mar 21, 2025
77fbf13
revert back
BrentBlanckaert Mar 21, 2025
35cf415
added test and cleaned up some of the code
BrentBlanckaert Mar 21, 2025
d2fb379
added extra test for conversion to yamlObject
BrentBlanckaert Mar 21, 2025
9ff38b5
made an extra test
BrentBlanckaert Mar 21, 2025
361aa5c
made one more test
BrentBlanckaert Mar 21, 2025
b81e152
fix linting
BrentBlanckaert Mar 21, 2025
fc7258e
Major cutback of of TESTed in translation
BrentBlanckaert Mar 25, 2025
18fbd02
forgot to push actual new file
BrentBlanckaert Mar 25, 2025
e86d48a
split up tests
BrentBlanckaert Mar 26, 2025
4289910
Fixed linting and typing issues
BrentBlanckaert Mar 26, 2025
33ba90f
Fixed ALL linting issues
BrentBlanckaert Mar 26, 2025
204f50a
applied all changes regarding jinja2
BrentBlanckaert Mar 27, 2025
9c83b4d
Added an extra test
BrentBlanckaert Mar 28, 2025
29b3a45
removed conversion to yamlObject
BrentBlanckaert Mar 31, 2025
4f0a0ca
remove unused import
BrentBlanckaert Mar 31, 2025
84fb41f
got rid of the !programming_language tag for this PR
BrentBlanckaert Mar 31, 2025
57fcc0e
Made an extra test
BrentBlanckaert Mar 31, 2025
c7cde3d
Fix linting
BrentBlanckaert Mar 31, 2025
79210fa
Give warning for each missing key
BrentBlanckaert Apr 3, 2025
d62862a
Merge branch 'master' of https://github.com/dodona-edu/universal-judge
BrentBlanckaert Apr 7, 2025
2c9bc06
added a bit of documentation and did some last changes to Json schema
BrentBlanckaert Apr 14, 2025
502f51d
removing redundant line
BrentBlanckaert Apr 14, 2025
52537f6
fixed linting
BrentBlanckaert Apr 14, 2025
511d6cf
cleaned up code some more and added asserts
BrentBlanckaert Apr 14, 2025
71c9ee5
merging with master
BrentBlanckaert Apr 20, 2025
c11df03
changing main
BrentBlanckaert Apr 23, 2025
f327e19
fixed a few issues
BrentBlanckaert Apr 25, 2025
5cd9e15
remove unused import
BrentBlanckaert Apr 25, 2025
1d40776
fixing typing issue
BrentBlanckaert Apr 25, 2025
3a97b15
made few changes
BrentBlanckaert Apr 28, 2025
bb3438e
removed default from arguments
BrentBlanckaert Apr 28, 2025
f09f925
changed some of the names
BrentBlanckaert May 2, 2025
46ea4cc
fixed linting
BrentBlanckaert May 2, 2025
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
10 changes: 9 additions & 1 deletion tested/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,14 @@
help="Include verbose logs. It is recommended to also use -o in this case.",
action="store_true",
)

parser.add_argument(

Check warning on line 34 in tested/__main__.py

View check run for this annotation

Codecov / codecov/patch

tested/__main__.py#L34

Added line #L34 was not covered by tests
"-t",
"--translate",
type=str,
help="Specifies the language to translate translate the dsl to.",
default="-",
)
parser = parser.parse_args()

if parser.verbose:
Expand All @@ -42,4 +50,4 @@

configuration = read_config(parser.config)
with smart_close(parser.output) as out:
run(configuration, out)
run(configuration, out, parser.translate)

Check warning on line 53 in tested/__main__.py

View check run for this annotation

Codecov / codecov/patch

tested/__main__.py#L53

Added line #L53 was not covered by tests
Loading
Loading