Skip to content

Commit e20a341

Browse files
authored
Refactor and porting scan.l almost completely (#20)
* refactor * Resolve todos in scan.l * fix: clippy * fix: patch
1 parent 1fcb0ef commit e20a341

File tree

26 files changed

+5799
-3905
lines changed

26 files changed

+5799
-3905
lines changed

.github/workflows/rust.yml

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,23 @@ name: Rust
22

33
on:
44
push:
5-
branches: [ "main" ]
5+
branches: ["main"]
66
pull_request:
7-
branches: [ "main" ]
87

98
env:
109
CARGO_TERM_COLOR: always
1110

1211
jobs:
1312
build:
14-
1513
runs-on: ubuntu-latest
1614

1715
steps:
18-
- uses: actions/checkout@v4
19-
- name: Build
20-
run: cargo build --verbose
21-
- name: Run tests
22-
run: cargo test --verbose
23-
- name: clippy
24-
uses: actions-rs/clippy-check@v1
25-
with:
26-
token: ${{ secrets.GITHUB_TOKEN }}
16+
- uses: actions/checkout@v4
17+
- name: Build
18+
run: cargo build --verbose
19+
- name: Run tests
20+
run: cargo test --verbose
21+
- name: clippy
22+
uses: actions-rs/clippy-check@v1
23+
with:
24+
token: ${{ secrets.GITHUB_TOKEN }}

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) [year] [fullname]
3+
Copyright (c) 2024 tanzaku
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ copy-from-original-source: prepare-original-source
2020
cp $(ROOT_DIR)tmp/libpg_query/tmp/postgres/src/backend/parser/gram.y $(ROOT_DIR)crates/parser-generator/resources
2121

2222
make-patch: prepare-original-source
23-
diff -u $(ROOT_DIR)tmp/libpg_query/tmp/postgres/src/backend/parser/scan.l ./crates/lexer-generator/resources/scan.l > ./patches/patch_scan.patch || true
23+
diff -u ./tmp/libpg_query/tmp/postgres/src/backend/parser/scan.l ./crates/lexer-generator/resources/scan.l > ./patches/patch_scan.patch || true
2424

2525
clean:
2626
-@ rm -rf ./tmp

build.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ set -eux
44

55
cargo run -p lexer-generator --release
66
cargo run -p parser-generator --release
7-
cargo test --package postgresql-cst-parser --test test -- test_all --exact --show-output
7+
# cargo test --package postgresql-cst-parser --test test -- test_all --exact --show-output
8+
cargo test --package postgresql-cst-parser

0 commit comments

Comments
 (0)