Skip to content

Commit

Permalink
Remove old parser.
Browse files Browse the repository at this point in the history
  • Loading branch information
01mf02 committed Mar 23, 2022
1 parent 5db8419 commit 3e26651
Show file tree
Hide file tree
Showing 5 changed files with 111 additions and 562 deletions.
5 changes: 1 addition & 4 deletions jaq-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@ keywords = ["json", "query", "jq"]
categories = ["compilers", "parser-implementations"]

[features]
default = ["std", "parse", "bincode"]
default = ["std", "bincode"]
std = []
parse = ["pest", "pest_derive"]

[build-dependencies]
jaq-parse = { version = "0.1", path = "../jaq-parse" }
Expand All @@ -26,6 +25,4 @@ fxhash = "0.2.1"
indexmap = "1.6.0"
itertools = "0.9"
lazy_static = "1.4"
pest = { version = "2.1", optional = true }
pest_derive = { version = "2.1", optional = true }
serde_json = { version = "1.0", features = [ "preserve_order" ] }
88 changes: 0 additions & 88 deletions jaq-core/src/grammar.pest

This file was deleted.

11 changes: 1 addition & 10 deletions jaq-core/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,23 +1,14 @@
// TODO: make this unconditionally no_std
#![cfg_attr(not(feature = "std"), no_std)]
#![no_std]

#[cfg(feature = "std")]
extern crate std;

extern crate alloc;
#[cfg(feature = "parse")]
extern crate pest;
#[cfg(feature = "parse")]
#[macro_use]
extern crate pest_derive;

pub mod error;
pub mod filter;
pub mod functions;
pub mod ops;
#[cfg(feature = "parse")]
pub mod parse;
pub mod parse2;
pub mod path;
pub mod preprocess;
pub mod recurse;
Expand Down
Loading

0 comments on commit 3e26651

Please sign in to comment.