File tree 3 files changed +12
-12
lines changed
3 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -13,10 +13,9 @@ name = "luacompiler"
13
13
path = " src/lib/mod.rs"
14
14
15
15
[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"
20
19
bincode = " 1.0.1"
21
20
serde = " 1.0.80"
22
21
serde_derive = " 1.0"
@@ -26,5 +25,6 @@ version = "2.32"
26
25
default-features = false
27
26
28
27
[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;
1
2
extern crate lrlex;
2
3
extern crate lrpar;
3
4
5
+ use cfgrammar:: yacc:: { YaccKind , YaccOriginalActionKind } ;
4
6
use lrlex:: LexerBuilder ;
5
- use lrpar:: ActionKind ;
6
7
use lrpar:: CTParserBuilder ;
7
8
8
9
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 ( )
10
11
. 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 ( )
14
15
. rule_ids_map ( lex_rule_ids_map)
15
16
. process_file_in_src ( "lua5_3/lua5_3.l" ) ?;
16
17
Ok ( ( ) )
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ extern crate cfgrammar;
3
3
extern crate lrlex;
4
4
#[ macro_use]
5
5
extern crate lrpar;
6
- extern crate lrtable;
7
6
#[ macro_use]
8
7
extern crate serde_derive;
9
8
extern crate bincode;
You can’t perform that action at this time.
0 commit comments