598 Commits

Author SHA1 Message Date
light-ly
b6ae8b8a1f enrich paserexpression node
Some checks failed
Periodic / build (ubuntu-latest, beta) (push) Has been cancelled
Periodic / build (ubuntu-latest, nightly) (push) Has been cancelled
Periodic / build (ubuntu-latest, stable) (push) Has been cancelled
2024-10-29 21:43:06 +08:00
21f3e497e8 update & save 2024-10-06 15:27:50 +08:00
1e390e0f44 修复 undef预编译错误 2024-10-04 21:10:36 +08:00
4a73dc87f7 update 2024-09-26 20:13:56 +08:00
light-ly
90e9d4cb3b add Expression node to NeedParseExpression 2024-09-24 23:35:50 +08:00
light-ly
4960ea3fb7 add new special node to parse expression and locate 2024-09-18 17:21:01 +08:00
light-ly
af11f5ff1e make syntaxtree.text public 2024-09-15 17:07:55 +08:00
dalance
f5b3f2b090 Prepare to release 2023-11-29 12:49:34 +09:00
dalance
e82f4ee236 Update CHANGELOG 2023-11-29 12:33:28 +09:00
dalance
250354e7c6
Merge pull request #93 from skjdbg/fix_chained_method
Fix chained method
2023-11-29 12:32:43 +09:00
Thomas Heuschling
9dacf76e68 Fix Typo 2023-11-27 22:25:20 +01:00
Thomas Heuschling
61673565cb Fixed chained method call parsing and added related tests 2023-11-27 22:06:39 +01:00
dalance
12e4d213f6 Prepare to release 2023-11-09 11:58:47 +09:00
dalance
ceadf146fa Update CHANGELOG 2023-11-09 11:53:52 +09:00
dalance
02c996d837 Fix warning 2023-11-09 11:52:16 +09:00
dalance
2e2590b836
Merge pull request #85 from dalance/dependabot/cargo/criterion-0.5
Update criterion requirement from 0.4 to 0.5
2023-11-09 11:48:53 +09:00
dalance
3255b910b4
Merge pull request #87 from Graian/symlink_issue
Modify to handle symplink as well as file
2023-11-09 10:47:56 +09:00
ryan.park
aaf4661bee Modify to handle symplink as well as file
* The current source causes problems when building `sv-parser` on bazel build system
  * because bazel creates the working directory for the build as a symlink
2023-07-28 07:54:31 +09:00
dependabot[bot]
f0932d197e
Update criterion requirement from 0.4 to 0.5
Updates the requirements on [criterion](https://github.com/bheisler/criterion.rs) to permit the latest version.
- [Changelog](https://github.com/bheisler/criterion.rs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/bheisler/criterion.rs/compare/0.4.0...0.5.0)

---
updated-dependencies:
- dependency-name: criterion
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-23 20:57:48 +00:00
dalance
2f6e404c89 Prepare to release 2023-03-23 09:51:34 +09:00
dalance
6b49e5d2a2 Fix wrong version 2023-03-23 09:48:41 +09:00
dalance
76ea7b321a Merge branch 'master' of https://github.com/dalance/sv-parser 2023-03-23 09:42:20 +09:00
dalance
4cc31c837d Update nom to 7 2023-03-23 09:42:04 +09:00
dalance
ef10916587
Merge pull request #84 from dalance/dependabot/cargo/syn-2.0.6
Update syn requirement from 1.0.0 to 2.0.6
2023-03-23 08:22:50 +09:00
dependabot[bot]
71fb1302ee
Update syn requirement from 1.0.0 to 2.0.6
Updates the requirements on [syn](https://github.com/dtolnay/syn) to permit the latest version.
- [Release notes](https://github.com/dtolnay/syn/releases)
- [Commits](https://github.com/dtolnay/syn/compare/1.0.0...2.0.6)

---
updated-dependencies:
- dependency-name: syn
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-22 21:06:57 +00:00
dalance
a4cb297e8a Prepare to release 2023-02-08 21:30:58 +09:00
dalance
ad4833a744 Update CHANGELOG 2023-02-08 21:29:57 +09:00
dalance
5363e64312 Prepare to release 2023-02-08 09:14:41 +09:00
dalance
35c3aeb959 Update CHANGELOG 2023-02-08 09:14:26 +09:00
dalance
83f850f79e
Merge pull request #79 from DaveMcEwan/improvement78
Improvement: Handle non-UTF8 files
2023-02-08 09:13:31 +09:00
damc
a5d0c48b35 improvement78 Remove Option<> wrapper from ReadUtf8 arg.
There's no immediate usecase for distinguishing `Some`/`None`.
2023-02-07 19:17:57 +01:00
damc
ac2d169333 improvement78 Add Error::ReadUtf8 with testcase.
There are 6x LATIN1 bytes in a comment.
2023-02-07 18:57:08 +01:00
damc
1ee6215934 improvement78 Testcase for Error:DefineArgNotFound. 2023-02-07 18:30:59 +01:00
damc
f0aa7c5a5c improvement78 Testcase for Error:DefineNotFound. 2023-02-07 18:04:27 +01:00
damc
f98cb6c5d7 improvement78 Testcase, plus String arg for Error:DefineNoArgs. 2023-02-07 17:47:20 +01:00
dalance
81003fe276
Merge pull request #74 from DaveMcEwan/bugfix73
bugfix73 Spelling-only `Assetion` -> `Assertion`
2022-12-02 18:01:56 +09:00
damc
7acce55136 bugfix73 Spelling-only Assetion -> Assertion 2022-11-22 17:01:28 +01:00
dalance
70ebf3943b Prepare to release 2022-11-09 16:38:06 +09:00
dalance
539bc3ade3 Fix release.toml 2022-11-09 16:29:51 +09:00
dalance
cd8a19da18 Update CHANGELOG 2022-11-09 16:24:50 +09:00
dalance
1458b98da7
Merge pull request #63 from dalance/dependabot/cargo/criterion-0.4
Update criterion requirement from 0.3 to 0.4
2022-11-09 16:18:20 +09:00
dalance
9bfc1768c0
Merge pull request #69 from DaveMcEwan/ppErrorPreprocess
Use `Error::Preprocess` on pp parsing error, instead of `Error::Parse`.
2022-11-09 16:16:28 +09:00
dalance
a9ae3c2e69
Merge pull request #71 from DaveMcEwan/predefineSvCov
Predefine `SV_COV_*` constants required by clause 40.3.1
2022-11-09 16:14:31 +09:00
dalance
f6fd124601
Merge pull request #70 from DaveMcEwan/traitDebug
Implement the std::fmt::Debug trait.
2022-11-09 16:11:21 +09:00
damc
13504563f2 predefineSvCov Implement pre-defined constants, enable test. 2022-11-08 20:55:23 +01:00
damc
6b3b3ee903 predefineSvCov Add simple testcase. 2022-11-08 20:25:30 +01:00
damc
a9302e7f90 traitDebug Implement the std::fmt::Debug trait.
- Based on the Display trait, but includes whitespace.
- The format of each line is slightly different, with `@line:123`
  appearing before the token's string.
  - This is to reduce the chances of grep-based tools getting confused.
  - This also makes it easier to display whitespace/comments.
- No additional testcases are added, same as Display.
- Tested via local build in svlint development.
2022-11-08 19:09:26 +01:00
damc
8c3f87b360 ppErrorPreprocess Add testcase, currently ignored. 2022-10-26 20:14:19 +02:00
damc
f9e93d18bd ppErrorPreprocess Make use of the existing Error::Preprocess
Before this commit, inputs with invalid pp syntax are reported using
`Error::Parse` which is also used to report invalid post-pp syntax.
In svlint/svls, `Error::Parse` is reported to the user as "parse error"
without specifying if that's pre or post pp.
This commit makes it possible for future versions of svlint/svls to report
"preprocess error", thus helping users to identify pp issues.

- `Error::Preprocess` appears to be defined but unused.
- Add the argument `Option<(PathBuf, usize)>` to `Error::Preprocess`, same
  as `Error::Parse`.
- Update `preprocess_str()` to use `Error::Preprocess` in all 5 instances.
2022-10-26 19:43:23 +02:00
dalance
6c28a6157d
Merge pull request #65 from wendajiang/typo
fix: typo
2022-10-19 16:41:15 +09:00