-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEATURE] Add grammar, translations and better parser
[FEATURE] Add grammar, translations and better parser in #71 by @ElBe-Plaq, contributing to Release v1.0.0-alpha3 Changed files: - '.editorconfig' - '.github/CONTRIBUTING.md' - '.github/README.md' - '.github/SECURITY.md' - '.github/SUPPORT.md' - '.github/workflows/dependencies.yml' - '.github/workflows/rust.yml' - '.mega-linter.yml' - '.pre-commit-config.yaml' - 'Cargo.toml' - 'Docs/Docs/index.md' - 'Docs/Docs/install.md' - 'Makefile' - 'Tools/clean.py' - 'Translations/de.json' - 'Translations/en.json' - 'justfile' - 'src/Lexer/lexer.rs' - 'src/Lexer/mod.rs' - 'src/Parser/parser.rs' - 'src/compiler/compiler.rs' - 'src/compiler/mod.rs' - 'src/grammar/fileextensions' - 'src/grammar/grammar.pest' - 'src/grammar/grammar.rs' - 'src/grammar/grammar_beta.pest' - 'src/grammar/mod.rs' - 'src/installer/Linux/installer.bash' - 'src/installer/Windows/Server/installer.bat' - 'src/installer/Windows/add_desktop_icon.bat' - 'src/installer/Windows/add_to_path.bat' - 'src/installer/Windows/associate_file_extension.bat' - 'src/installer/Windows/setup.iss' - 'src/installer/Windows/unasociate_file_extension.bat' - 'src/lib.rs' - 'src/main.rs' - 'src/parser/convert.rs' - 'src/parser/errors.rs' - 'src/parser/mod.rs' - 'src/parser/parser.rs' - 'src/parser/token.rs' Approved by: @ Co-authored-by: ElBe <90863907+ElBe-Plaq@users.noreply.github.com> Co-authored-by: ElBe <90863907+ElBe-Plaq@users.noreply.github.com> Co-authored-by: ElBe <90863907+ElBe-Plaq@users.noreply.github.com> Co-authored-by: ElBe <90863907+ElBe-Plaq@users.noreply.github.com> Co-authored-by: ElBe <90863907+ElBe-Plaq@users.noreply.github.com> Co-authored-by: ElBe <90863907+ElBe-Plaq@users.noreply.github.com> Co-authored-by: ElBe <90863907+ElBe-Plaq@users.noreply.github.com> Co-authored-by: ElBe <90863907+ElBe-Plaq@users.noreply.github.com> Co-authored-by: ElBe <90863907+ElBe-Plaq@users.noreply.github.com> Co-authored-by: ElBe <90863907+ElBe-Plaq@users.noreply.github.com> Co-authored-by: ElBe <90863907+ElBe-Plaq@users.noreply.github.com> Co-authored-by: ElBe <90863907+ElBe-Plaq@users.noreply.github.com> Co-authored-by: ElBe <90863907+ElBe-Plaq@users.noreply.github.com> Co-authored-by: ElBe <90863907+ElBe-Plaq@users.noreply.github.com> Co-authored-by: ElBe <90863907+ElBe-Plaq@users.noreply.github.com> Co-authored-by: ElBe <90863907+ElBe-Plaq@users.noreply.github.com> Co-authored-by: ElBe <90863907+ElBe-Plaq@users.noreply.github.com> Co-authored-by: ElBe <90863907+ElBe-Plaq@users.noreply.github.com> Co-authored-by: ElBe <90863907+ElBe-Plaq@users.noreply.github.com> Co-authored-by: ElBe <90863907+ElBe-Plaq@users.noreply.github.com> Co-authored-by: ElBe <90863907+ElBe-Plaq@users.noreply.github.com> Co-authored-by: ElBe <90863907+ElBe-Plaq@users.noreply.github.com> Co-authored-by: ElBe <90863907+ElBe-Plaq@users.noreply.github.com> Co-authored-by: ElBe <90863907+ElBe-Plaq@users.noreply.github.com> Co-authored-by: ElBe <90863907+ElBe-Plaq@users.noreply.github.com> Co-authored-by: ElBe <90863907+ElBe-Plaq@users.noreply.github.com> Co-authored-by: ElBe <90863907+ElBe-Plaq@users.noreply.github.com> Co-authored-by: ElBe <90863907+ElBe-Plaq@users.noreply.github.com> Co-authored-by: ElBe <90863907+ElBe-Plaq@users.noreply.github.com> Co-authored-by: ElBe <90863907+ElBe-Plaq@users.noreply.github.com> Co-authored-by: ElBe <90863907+ElBe-Plaq@users.noreply.github.com> Co-authored-by: ElBe <90863907+ElBe-Plaq@users.noreply.github.com> Co-authored-by: ElBe <90863907+ElBe-Plaq@users.noreply.github.com> Co-authored-by: ElBe <90863907+ElBe-Plaq@users.noreply.github.com> Co-authored-by: ElBe <90863907+ElBe-Plaq@users.noreply.github.com> Co-authored-by: ElBe <90863907+ElBe-Plaq@users.noreply.github.com> Co-authored-by: ElBe <90863907+ElBe-Plaq@users.noreply.github.com> Co-authored-by: ElBe <90863907+ElBe-Plaq@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: ElBe <90863907+ElBe-Plaq@users.noreply.github.com> Co-authored-by: ElBe <90863907+ElBe-Plaq@users.noreply.github.com> Co-authored-by: ElBe <90863907+ElBe-Plaq@users.noreply.github.com> Co-authored-by: ElBe <90863907+ElBe-Plaq@users.noreply.github.com> Co-authored-by: ElBe <90863907+ElBe-Plaq@users.noreply.github.com> Co-authored-by: ElBe <90863907+ElBe-Plaq@users.noreply.github.com> Co-authored-by: ElBe <90863907+ElBe-Plaq@users.noreply.github.com>
- Loading branch information
Showing
41 changed files
with
1,084 additions
and
1,049 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: Rust | ||
permissions: read-all | ||
|
||
on: [push, pull_request] | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Build | ||
run: cargo build --verbose | ||
- name: Run tests | ||
run: cargo test --verbose |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"parser.convert.unknown_token": "{{color.yellow}}Warnung:{{end}} Unbekannter Token ({{token}}) gefunden. Token wird \u00fcbersprungen, da kein Syntaxfehler vorliegt...", | ||
"parser.errors.syntax": "{{color.red}}Fehler:{{end}} Falsche Syntax" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"parser.convert.unknown_token": "{{color.yellow}}Warning:{{end}} Unknown token ({{token}}) detected. Skipping, due to no syntax error...", | ||
"parser.errors.syntax": "{{color.red}}Error:{{end}} Invalid syntax" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
alias b := build | ||
alias c := clean | ||
alias l := lint | ||
alias r := run | ||
alias t := test | ||
|
||
# Compiles the rust source files | ||
build *ARGUMENTS: | ||
cargo build --release *ARGUMENTS | ||
|
||
# Removes temporary files | ||
clean: | ||
rm -rf target | ||
rm -rf Tools/__pycache__ | ||
|
||
# Lints the rust source files | ||
lint *ARGUMENTS: | ||
cargo check *ARGUMENTS | ||
|
||
# Compiles and executes the main.rs file | ||
run *ARGUMENTS: | ||
cargo run *ARGUMENTS | ||
|
||
# Runs the unittests | ||
test *ARGUMENTS: | ||
cargo test *ARGUMENTS |
Oops, something went wrong.