Skip to content

Drop dependency on synom #4

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

Merged
merged 1 commit into from
Jun 1, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ authors = ["Alex Crichton <[email protected]>"]
doctest = false

[dependencies]
synom = "0.11"
unicode-xid = "0.0.4"

[features]
Expand Down
7 changes: 5 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
extern crate proc_macro;

#[macro_use]
#[cfg(not(feature = "unstable"))]
extern crate synom;
extern crate unicode_xid;

use std::fmt;
use std::str::FromStr;
use std::iter::FromIterator;

#[macro_use]
#[cfg(not(feature = "unstable"))]
mod strnom;

#[path = "stable.rs"]
#[cfg(not(feature = "unstable"))]
mod imp;
Expand Down
7 changes: 2 additions & 5 deletions src/stable.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
extern crate unicode_xid;

use std::ascii;
use std::borrow::Borrow;
use std::cell::RefCell;
Expand All @@ -12,9 +10,8 @@ use std::str::FromStr;
use std::vec;

use proc_macro;
use self::unicode_xid::UnicodeXID;
use synom::space::{skip_whitespace, block_comment, whitespace};
use synom::{IResult};
use unicode_xid::UnicodeXID;
use strnom::{IResult, skip_whitespace, block_comment, whitespace};

use {TokenTree, TokenKind, Delimiter, OpKind};

Expand Down
Loading