From fb0784be9d26bb68873fd894f59f1ddc8be2beb9 Mon Sep 17 00:00:00 2001 From: Tim Boudreau Date: Sun, 16 May 2021 19:26:23 -0400 Subject: [PATCH 1/2] Expose lexer mode stack --- src/lexer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lexer.rs b/src/lexer.rs index 098b8e6..6a5a5b2 100644 --- a/src/lexer.rs +++ b/src/lexer.rs @@ -102,7 +102,7 @@ pub struct BaseLexer< hit_eof: bool, /// Channel lexer is currently assigning tokens to pub channel: isize, - mode_stack: Vec, + pub mode_stack: Vec, /// Mode lexer is currently in pub mode: usize, /// Make it `Some` to override text for token that is currently being generated by lexer From 61d1efea24631dbab4668ad9c70df3a3382723b6 Mon Sep 17 00:00:00 2001 From: Tim Boudreau Date: Mon, 17 May 2021 14:23:58 -0400 Subject: [PATCH 2/2] Bump version --- Cargo.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 4affd11..a3ebd7d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "antlr-rust" -version = "0.2.0" +version = "0.2.1" authors = ["Konstantin Anisimov "] homepage = "https://github.com/rrevenantt/antlr4rust" repository = "https://github.com/rrevenantt/antlr4rust" @@ -36,4 +36,4 @@ parking_lot = "0.11" [profile.release] #opt-level = 3 -#debug = true \ No newline at end of file +#debug = true