File tree Expand file tree Collapse file tree 3 files changed +12
-12
lines changed Expand file tree Collapse file tree 3 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -13,10 +13,9 @@ name = "luacompiler"
1313path = " 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"
2019bincode = " 1.0.1"
2120serde = " 1.0.80"
2221serde_derive = " 1.0"
@@ -26,5 +25,6 @@ version = "2.32"
2625default-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"
Original file line number Diff line number Diff line change 1+ extern crate cfgrammar;
12extern crate lrlex;
23extern crate lrpar;
34
5+ use cfgrammar:: yacc:: { YaccKind , YaccOriginalActionKind } ;
46use lrlex:: LexerBuilder ;
5- use lrpar:: ActionKind ;
67use lrpar:: CTParserBuilder ;
78
89fn 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 ( ( ) )
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ extern crate cfgrammar;
33extern crate lrlex;
44#[ macro_use]
55extern crate lrpar;
6- extern crate lrtable;
76#[ macro_use]
87extern crate serde_derive;
98extern crate bincode;
You can’t perform that action at this time.
0 commit comments