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

Parser #2

Merged
merged 24 commits into from
Feb 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
7ac6c68
parser init
TommYDeeee Jan 5, 2024
b796ecf
Create rust.yml
TommYDeeee Jan 5, 2024
3017134
Create code-health.yml
TommYDeeee Jan 5, 2024
9ce26c0
Change few clippy warnings
TommYDeeee Jan 5, 2024
9af834f
Implement TreeSink and TokenSource
TommYDeeee Jan 8, 2024
cae1c8c
parser basic implementation
TommYDeeee Jan 9, 2024
8d68534
fix infinite loop problem and parse everything into source file
TommYDeeee Jan 10, 2024
1fb92a6
rule parsing WiP
TommYDeeee Jan 15, 2024
dc84915
add block expression parsing
TommYDeeee Jan 17, 2024
7d5e251
Merge branch 'main' into parser
TommYDeeee Jan 17, 2024
e5ea692
add support for condition statements
TommYDeeee Jan 22, 2024
5d2a5a4
Merge remote-tracking branch 'upstream/main' into parser
TommYDeeee Jan 22, 2024
4c304b2
Merge pull request #1 from TommYDeeee/parser
TommYDeeee Jan 22, 2024
4cbe27b
Merge remote-tracking branch 'upstream/parser'
TommYDeeee Jan 22, 2024
01838ff
fix clippy warnings
TommYDeeee Jan 22, 2024
967b615
add better variable support
TommYDeeee Jan 23, 2024
4af9f97
fix clippy warnings
TommYDeeee Jan 23, 2024
6505cdb
suppress clippy warnings
TommYDeeee Jan 23, 2024
21a29da
add tests
TommYDeeee Jan 25, 2024
9783127
Add yara subset grammar and fix recovery sets
TommYDeeee Jan 25, 2024
22eedaf
fmt fix
TommYDeeee Jan 25, 2024
9623d2b
fix strings and conditions redefinition and grammar
TommYDeeee Jan 29, 2024
7edfc3f
add support for unary expression in grammar
TommYDeeee Jan 29, 2024
dd49028
fix left recursion
TommYDeeee Jan 29, 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
40 changes: 40 additions & 0 deletions .github/workflows/code-health.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Code health

on: [push, pull_request]

jobs:
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/[email protected]
with:
components: clippy
- run: cargo clippy --tests --no-deps --all-features -- --deny clippy::all

rustfmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/[email protected]
with:
components: rustfmt
- run: cargo fmt --all --check

udeps:
name: Unused dependencies
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Install nightly toolchain
uses: dtolnay/rust-toolchain@nightly

- name: Run cargo-udeps
uses: aig787/cargo-udeps-action@v1
with:
version: v0.1.35
args: '--all-targets'
22 changes: 22 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Rust

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/target
.vscode
Loading
Loading