Skip to content

Expose mode_stack on Lexer #24

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "antlr-rust"
version = "0.2.0"
version = "0.2.1"
authors = ["Konstantin Anisimov <[email protected]>"]
homepage = "https://github.com/rrevenantt/antlr4rust"
repository = "https://github.com/rrevenantt/antlr4rust"
Expand Down Expand Up @@ -36,4 +36,4 @@ parking_lot = "0.11"

[profile.release]
#opt-level = 3
#debug = true
#debug = true
2 changes: 1 addition & 1 deletion src/lexer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ pub struct BaseLexer<
hit_eof: bool,
/// Channel lexer is currently assigning tokens to
pub channel: isize,
mode_stack: Vec<usize>,
pub mode_stack: Vec<usize>,
/// Mode lexer is currently in
pub mode: usize,
/// Make it `Some` to override text for token that is currently being generated by lexer
Expand Down