File tree 4 files changed +6
-11
lines changed
4 files changed +6
-11
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
use lalrpop;
2
2
3
3
fn main ( ) {
4
- lalrpop:: Configuration :: new ( )
5
- . generate_in_source_tree ( )
6
- . process ( )
7
- . unwrap ( ) ;
4
+ lalrpop:: process_root ( ) . unwrap ( )
8
5
}
Original file line number Diff line number Diff line change 1
1
#[ macro_use]
2
2
extern crate log;
3
+ use lalrpop_util:: lalrpop_mod;
3
4
4
5
pub mod ast;
5
6
pub mod error;
6
7
mod fstring;
7
8
pub mod lexer;
8
9
pub mod parser;
9
- #[ cfg_attr( rustfmt, rustfmt_skip) ]
10
- mod python;
10
+ lalrpop_mod ! (
11
+ #[ allow( clippy:: all) ]
12
+ python
13
+ ) ;
11
14
pub mod token;
Original file line number Diff line number Diff line change 2
2
// See also: https://github.com/antlr/grammars-v4/blob/master/python3/Python3.g4
3
3
// See also: file:///usr/share/doc/python/html/reference/compound_stmts.html#function-definitions
4
4
// See also: https://greentreesnakes.readthedocs.io/en/latest/nodes.html#keyword
5
- #![allow(unknown_lints,clippy)]
6
5
7
6
use std::iter::FromIterator;
8
7
You can’t perform that action at this time.
0 commit comments