Skip to content

Commit 90d493f

Browse files
committed
Add grmtools section to calc_manual_lex example.
1 parent 6d19a36 commit 90d493f

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

lrlex/examples/calc_manual_lex/build.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
use cfgrammar::yacc::YaccKind;
21
use lrlex::{ct_token_map, DefaultLexerTypes};
32
use lrpar::CTParserBuilder;
43

@@ -13,7 +12,6 @@ const TOKENS_MAP: &[(&str, &str)] = &[
1312

1413
fn main() {
1514
let ctp = CTParserBuilder::<DefaultLexerTypes<u8>>::new()
16-
.yacckind(YaccKind::Grmtools)
1715
.grammar_in_src_dir("calc.y")
1816
.unwrap()
1917
.build()

lrlex/examples/calc_manual_lex/src/calc.y

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
%grmtools{yacckind Grmtools}
12
%start Expr
23
%avoid_insert "INT"
34
%expect-unused Unmatched "UNMATCHED"

0 commit comments

Comments
 (0)