Commit Graph

68 Commits

Author SHA1 Message Date
openharmony_ci
67c3a3e423
!3 cexpr版本升级到0.6.0
Merge pull request !3 from XueLei/master
2024-07-15 01:57:45 +00:00
薛磊
ac13cd1fc8 Merge branch 'master' of https://gitee.com/xue-lei3/third_party_rust_rust-cexpr 2024-07-13 17:23:15 +08:00
薛磊
25eb70af91 cexpr版本升级到0.6.0
Signed-off-by: 薛磊 <xuelei3@huawei.com>
2024-07-13 16:41:26 +08:00
薛磊
9e46fa68cf cexpr版本升级到0.6.0
Signed-off-by: 薛磊 <xuelei3@huawei.com>
2024-07-12 18:10:59 +08:00
openharmony_ci
51717cad19
!2 Add OAT.xml and README.OpenSource
Merge pull request !2 from fangting/master
2023-04-14 08:10:05 +00:00
fangting
d4c3cba391 Add OAT.xml and README.OpenSource
Signed-off-by: fangting <fangting12@huawei.com>
2023-04-14 14:14:40 +08:00
openharmony_ci
f6bcd8ff3d
!1 [cexpr]Add GN Build Files and Custom Modifications to Rust Third-party Libraries
Merge pull request !1 from lubinglun/master
2023-04-13 11:34:45 +00:00
lubinglun
c71fc569e3 Add GN Build Files and Custom Modifications
Issue:https://gitee.com/openharmony/build/issues/I6UFTP
Signed-off-by: lubinglun <lubinglun@huawei.com>
2023-04-12 17:26:52 +08:00
bors[bot]
6a43efb32c
Merge #28
28: Bump crate version r=jethrogb a=tweksteen



Co-authored-by: Thiébaud Weksteen <tweek@google.com>
2021-06-08 09:33:08 +00:00
Thiébaud Weksteen
835772fe44 Bump crate version 2021-06-08 11:23:51 +02:00
bors[bot]
0eafea264c
Merge #27
27: Update to nom 6.x r=emilio a=tweksteen

This is an upgrade to nom 6.x. It was tested via `cargo test`. @jethrogb Could you please review? Could you please also consider adding @emilio as maintainer (see #23)? Thanks.

Old obsolete message:
> This is an attempt at upgrading to nom 6.x. There is still an issue in `typed_token` about the expected lifetime of the input. @jonhoo, since you did the port to nom 5.x, you may have some insight on how to fix this.
@jethrogb, any feedback is appreciated. Thanks.

Bug: #26

Co-authored-by: Thiébaud Weksteen <tweek@google.com>
2021-06-07 09:57:04 +00:00
Thiébaud Weksteen
7ce50c3fd9 Update to nom 6.x
Fix typos and remove dead code.
2021-05-12 15:53:18 +02:00
bors[bot]
2979eee12f
Merge #24
24: Only use needed features from nom r=jethrogb a=jrmuizel

Most importantly stop depending on the large lexical-core dependency.

This reduces clean build by about 3 seconds

Co-authored-by: Jeff Muizelaar <jrmuizel@gmail.com>
2020-03-09 17:19:14 +00:00
Jeff Muizelaar
640b3b2043 Only use needed features from nom
Most importantly stop depending on the large lexical-core dependency.

This reduces clean build by about 3 seconds
2020-03-09 12:59:28 -04:00
bors[bot]
c257faa225
Merge #22
22: Upgrade to nom 5 r=jethrogb a=jonhoo

This patchset builds on #21, and bumps the dependency on `nom` to version 5. The change is a fairly major one, since `nom` moved away from macro-based parsers to combinators based on function callbacks.

Fixes #19 

---

**Old obsolete text:**

The current state of affairs is that this _almost_ compiles. The biggest remaining issue is how to pass the methods of `expr::PRef` in the new function-passing style. The errors should pretty quickly make it obvious what's going on. I'm honestly not sure what the right way to go about this is. The methods that call them may need to be re-written in the sort of "linear" style that `nom 5` favors. [`nom-methods`](https://docs.rs/nom-methods/) may provide some inspiration here. The new `&mut self` style also makes it awkward to have a combinator that may call multiple different methods on `self`.  It may be that we want to return to the old "consume self return Self" strategy to get around this.

I don't know that I'll have the time to finish this PR up any time soon, so @jethrogb if you want to pick this up and run with it, feel free!

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/jethrogb/rust-cexpr/22)
<!-- Reviewable:end -->


Co-authored-by: Jon Gjengset <jon@thesquareplanet.com>
2020-03-09 16:52:34 +00:00
Jon Gjengset
b9c14da26c
Resolve all clippy lints 2020-03-09 12:36:46 -04:00
Jon Gjengset
82ddd42d5d
Warn on missing docs 2020-03-09 12:31:29 -04:00
Jon Gjengset
233cd12380
Remove unnecessary '_ on &self 2020-03-09 12:21:12 -04:00
Jon Gjengset
7a885268ad
nom5 bumps major version number 2020-03-09 12:15:27 -04:00
Jon Gjengset
1200109183
Remove unnecessary intermediate var 2020-03-09 12:14:02 -04:00
Jon Gjengset
20a683c4ac
Move imports to the top 2020-03-09 12:13:09 -04:00
Jon Gjengset
011d47fe11
Merge branch 'master' into nom5 2020-03-09 12:09:27 -04:00
bors[bot]
23298e5afa
Merge #21
21: rustfmt + 2018 edition + 2018 idioms r=jethrogb a=jonhoo

I _think_ this can replace #20 as it also does `rustfmt` and `rust_2018_idioms`.

Fixes #20

Co-authored-by: Jon Gjengset <jon@thesquareplanet.com>
2020-03-09 12:56:11 +00:00
Jon Gjengset
506ee2b271
Apparently mut self wasn't needed 2020-02-20 09:57:14 -05:00
Jon Gjengset
a524f53961
Most of the way 2020-02-17 21:07:43 -05:00
Jon Gjengset
3a323a4e41
2018 edition 2020-02-17 13:00:42 -05:00
Jon Gjengset
4a73811e9c
cargo fmt 2020-02-17 12:42:08 -05:00
bors[bot]
3248565b10
Merge #18
18: Bump version r=jethrogb a=jethrogb



Co-authored-by: jethrogb <github@jbeekman.nl>
2019-11-05 10:30:37 +00:00
jethrogb
cdd57e51d9
Update Cargo.toml 2019-11-05 02:29:58 -08:00
bors[bot]
23d3b97b21
Merge #17
17: Support capital integer literal prefixes (0X, 0B) r=jethrogb a=ikravets

From C/C++ standard standpoint capital 0X prefix is valid at least from C99 and capital 0B prefix is valid starting C++14. This PR adds basic tests and fixes both cases.

Co-authored-by: Ilia Kravets <ilia.kravets@gmail.com>
2019-11-05 10:07:55 +00:00
Ilia Kravets
f4f6963a5d Support capital int literal prefixes (0X, 0B) 2019-11-03 13:15:30 +02:00
bors[bot]
e8d24d9209 Merge #13
13: Bump clang-sys to 0.28.0 r=jethrogb a=eclipseo

Signed-off-by: Robert-André Mauchin <zebob.m@gmail.com>

Co-authored-by: Robert-André Mauchin <zebob.m@gmail.com>
Co-authored-by: Jethro Beekman <jethro@jbeekman.nl>
2019-03-19 06:32:46 +00:00
Jethro Beekman
fec4a35924 Bump crate version 2019-03-18 23:19:04 -07:00
bors[bot]
a31be71558 Merge #14
14: Setup CI r=jethrogb a=jethrogb



Co-authored-by: Jethro Beekman <jethro@jbeekman.nl>
2019-03-19 06:16:14 +00:00
Jethro Beekman
680b60da9f Setup CI 2019-03-18 23:15:21 -07:00
Robert-André Mauchin
254077163f Bump to 0.28.0
Signed-off-by: Robert-André Mauchin <zebob.m@gmail.com>
2019-03-17 17:38:46 +01:00
Jethro Beekman
9fe045aa9d Fix #12 and bump version 2019-01-15 22:43:56 +05:30
jethrogb
8157c43cba
Merge pull request #11 from jethrogb/jb/bindgen-1424
Revert literal parsing order.
2018-10-18 13:01:19 -07:00
Jethro Beekman
ee2bc79c54 Revert literal parsing order. Fixes rust-bindgen#1424 2018-10-18 13:00:32 -07:00
jethrogb
68261ff750
Merge pull request #9 from cuviper/clang-sys-limit
Use a semver-compatible limit for clang-sys
2018-10-11 12:31:59 -07:00
Josh Stone
921f8cb2ad Bump to 0.3.2 2018-10-11 12:31:14 -07:00
Josh Stone
4304f308af Use a semver-compatible limit for clang-sys
Use `clang-sys < 0.27.0` rather than `<= 0.26.0`, so that any
semver-compatible 0.26.x will be allowed.
2018-10-11 12:24:29 -07:00
Jethro Beekman
24cca6e626 Bump clang-sys version
Fixes #8
2018-10-08 22:12:28 -07:00
jethrogb
e65e212349
Merge pull request #7 from Geal/master
update to nom 4
2018-09-17 22:00:09 -07:00
Jethro Beekman
5e2a0cf8c7 Bump version. Misc lint & formatting fixes. 2018-09-17 21:59:29 -07:00
Geoffroy Couprie
f7c8a23a7a nom 4 update: partial parsing fixes 2018-08-14 15:00:50 +02:00
Geoffroy Couprie
f549902e2d nom 4 update: type conversions 2018-08-14 14:59:08 +02:00
Jethro Beekman
024892e0f7 nom's recognize! was fixed a long time ago 2018-02-17 11:58:38 -08:00
Jethro Beekman
23120e83c4 Ad tests for last two commits 2017-07-14 18:08:23 -07:00
Jethro Beekman
75265c358e Fix numeric expressions with additional operators after the last closing parenthesis 2017-07-14 18:07:31 -07:00