Skip to content

Commit

Permalink
Update to grmtools 0.2.
Browse files Browse the repository at this point in the history
  • Loading branch information
rbartlensky committed Jan 15, 2019
1 parent ff59615 commit 0ec46ba
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions luacompiler/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,9 @@ name = "luacompiler"
path = "src/lib/mod.rs"

[dependencies]
cfgrammar = { git="https://github.com/softdevteam/grmtools" }
lrlex = { git="https://github.com/softdevteam/grmtools" }
lrpar = { git="https://github.com/softdevteam/grmtools" }
lrtable = { git="https://github.com/softdevteam/grmtools" }
cfgrammar = "0.2"
lrlex = "0.2"
lrpar = "0.2"
bincode = "1.0.1"
serde = "1.0.80"
serde_derive = "1.0"
Expand All @@ -26,5 +25,6 @@ version = "2.32"
default-features = false

[build-dependencies]
lrpar = { git="https://github.com/softdevteam/grmtools" }
lrlex = { git="https://github.com/softdevteam/grmtools" }
cfgrammar = "0.2"
lrlex = "0.2"
lrpar = "0.2"
11 changes: 6 additions & 5 deletions luacompiler/build.rs
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
extern crate cfgrammar;
extern crate lrlex;
extern crate lrpar;

use cfgrammar::yacc::{YaccKind, YaccOriginalActionKind};
use lrlex::LexerBuilder;
use lrpar::ActionKind;
use lrpar::CTParserBuilder;

fn main() -> Result<(), Box<std::error::Error>> {
let mut ct = CTParserBuilder::<u8>::new_with_storaget()
let lex_rule_ids_map = CTParserBuilder::<u8>::new_with_storaget()
.error_on_conflicts(false)
.action_kind(ActionKind::GenericParseTree);
let lex_rule_ids_map = ct.process_file_in_src("lua5_3/lua5_3.y")?;
LexerBuilder::new()
.yacckind(YaccKind::Original(YaccOriginalActionKind::GenericParseTree))
.process_file_in_src("lua5_3/lua5_3.y")?;
LexerBuilder::<u8>::new()
.rule_ids_map(lex_rule_ids_map)
.process_file_in_src("lua5_3/lua5_3.l")?;
Ok(())
Expand Down
1 change: 0 additions & 1 deletion luacompiler/src/lib/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ extern crate cfgrammar;
extern crate lrlex;
#[macro_use]
extern crate lrpar;
extern crate lrtable;
#[macro_use]
extern crate serde_derive;
extern crate bincode;
Expand Down

0 comments on commit 0ec46ba

Please sign in to comment.