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

The idea of this PR is to study the migration of this project to Rust 🦀 #5

Merged
merged 28 commits into from
Aug 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
6169dc1
Creates lines structs and traits
cuducos Oct 18, 2022
2826506
Adds Rust test to the CI
cuducos Oct 18, 2022
d7c9d77
Renames struct: Title -> Comment
cuducos Oct 22, 2022
1d33931
Renames struct: Variable -> SimpleVariable
cuducos Oct 22, 2022
bd5f75d
Creates block struct
cuducos Oct 22, 2022
8790d47
Renames impl: as_string -> to_string
cuducos Oct 22, 2022
997a707
Creates model module
cuducos Oct 22, 2022
b73f22f
Fixes Rust test flow on CI
cuducos Oct 22, 2022
244be98
Adds context to generate AutoGeneratedVariable values
cuducos Sep 18, 2023
4f74b4f
Removes Python code
cuducos Sep 18, 2023
7d6c778
Updates GitHub Action checkout version
cuducos Sep 18, 2023
9dc420c
Replaces: actions-rs/cargo -> dtolnay/rust-toolchain
cuducos Sep 18, 2023
8c4d8fa
Adds parser to read input character by character
cuducos Sep 19, 2023
3712af5
Implements a basic comment parser
cuducos Sep 20, 2023
acd8a66
Checks format on CI
cuducos Sep 20, 2023
8c5381c
Adds basic tokenizer
cuducos Sep 20, 2023
284ca54
Makes tokens aware of their line & column numbers
cuducos Sep 21, 2023
b29ca32
Re-organize the package using lib.rs
cuducos Sep 21, 2023
8988bef
Cleans up: removes unused code and unnecessary pub
cuducos Sep 21, 2023
6da2751
Makes tokenizer an interator
cuducos Sep 21, 2023
47519d3
Starts prototype for the parser
cuducos Sep 22, 2023
70fa3f1
Finishes CLI interaction
cuducos Aug 31, 2024
0fc0bc5
Finishes minimum viable parser
cuducos Aug 31, 2024
2add4c3
CLI MVP in Rust
cuducos Aug 31, 2024
687f562
Adds options to the CLI
cuducos Aug 31, 2024
cd312c6
Drops type for random variable
cuducos Aug 31, 2024
008339a
Enhances error messages
cuducos Aug 31, 2024
1fd51cd
Updates the docs
cuducos Aug 31, 2024
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
31 changes: 17 additions & 14 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
name: Tests
on: [push, pull_request]
jobs:
build:
fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install dependencies
uses: abatilo/[email protected]
with:
python_version: 3.9
poetry_version: 1.1.12
args: install
- name: Run tests
uses: abatilo/[email protected]
with:
python_version: 3.9
poetry_version: 1.1.12
args: run pytest
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
- run: rustup component add rustfmt
- run: cargo +nightly fmt --check
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: cargo clippy
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: cargo test
9 changes: 1 addition & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,2 @@
*.pyc
.coverage
.env
.mypy_cache/
.tox/
__pycache__/
createnv.egg-info/
dist/
htmlcov/
target/
2 changes: 2 additions & 0 deletions .rustfmt.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
reorder_imports = true
group_imports = "StdExternalCrate"
Loading