Move Cursor and TokenBuffer into buffer module
diff --git a/src/lib.rs b/src/lib.rs
index 386ba97..937953c 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -377,7 +377,7 @@
pub use path::PathTokens;
#[cfg(feature = "parsing")]
-mod cursor;
+pub mod buffer;
#[cfg(feature = "parsing")]
pub mod synom;
pub mod punctuated;
@@ -408,7 +408,7 @@
#[cfg(feature = "parsing")]
use synom::Synom;
#[cfg(feature = "parsing")]
-use cursor::SynomBuffer;
+use buffer::TokenBuffer;
#[cfg(feature = "parsing")]
mod error;
@@ -471,7 +471,7 @@
where
T: Synom,
{
- let buf = SynomBuffer::new(tokens);
+ let buf = TokenBuffer::new(tokens);
let result = T::parse(buf.begin());
let err = match result {
Ok((t, rest)) => {