Skip to content

Commit 6a8d0f7

Browse files
committed
Update to grmtools 0.2.
1 parent 2fe812c commit 6a8d0f7

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

luacompiler/Cargo.toml

+6-6
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,9 @@ name = "luacompiler"
1313
path = "src/lib/mod.rs"
1414

1515
[dependencies]
16-
cfgrammar = { git="https://github.com/softdevteam/grmtools" }
17-
lrlex = { git="https://github.com/softdevteam/grmtools" }
18-
lrpar = { git="https://github.com/softdevteam/grmtools" }
19-
lrtable = { git="https://github.com/softdevteam/grmtools" }
16+
cfgrammar = "0.2"
17+
lrlex = "0.2"
18+
lrpar = "0.2"
2019
bincode = "1.0.1"
2120
serde = "1.0.80"
2221
serde_derive = "1.0"
@@ -26,5 +25,6 @@ version = "2.32"
2625
default-features = false
2726

2827
[build-dependencies]
29-
lrpar = { git="https://github.com/softdevteam/grmtools" }
30-
lrlex = { git="https://github.com/softdevteam/grmtools" }
28+
cfgrammar = "0.2"
29+
lrlex = "0.2"
30+
lrpar = "0.2"

luacompiler/build.rs

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
1+
extern crate cfgrammar;
12
extern crate lrlex;
23
extern crate lrpar;
34

5+
use cfgrammar::yacc::{YaccKind, YaccOriginalActionKind};
46
use lrlex::LexerBuilder;
5-
use lrpar::ActionKind;
67
use lrpar::CTParserBuilder;
78

89
fn main() -> Result<(), Box<std::error::Error>> {
9-
let mut ct = CTParserBuilder::<u8>::new_with_storaget()
10+
let lex_rule_ids_map = CTParserBuilder::<u8>::new_with_storaget()
1011
.error_on_conflicts(false)
11-
.action_kind(ActionKind::GenericParseTree);
12-
let lex_rule_ids_map = ct.process_file_in_src("lua5_3/lua5_3.y")?;
13-
LexerBuilder::new()
12+
.yacckind(YaccKind::Original(YaccOriginalActionKind::GenericParseTree))
13+
.process_file_in_src("lua5_3/lua5_3.y")?;
14+
LexerBuilder::<u8>::new()
1415
.rule_ids_map(lex_rule_ids_map)
1516
.process_file_in_src("lua5_3/lua5_3.l")?;
1617
Ok(())

luacompiler/src/lib/mod.rs

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ extern crate cfgrammar;
33
extern crate lrlex;
44
#[macro_use]
55
extern crate lrpar;
6-
extern crate lrtable;
76
#[macro_use]
87
extern crate serde_derive;
98
extern crate bincode;

0 commit comments

Comments
 (0)