mirror of
https://github.com/fluencelabs/lalrpop
synced 2025-03-16 17:00:53 +00:00
remove unstable features
This commit is contained in:
parent
4cc5e50166
commit
301a2a23e2
@ -10,7 +10,7 @@
|
||||
|
||||
extern crate atty;
|
||||
extern crate bit_set;
|
||||
#[macro_use] extern crate bitflags;
|
||||
extern crate bitflags;
|
||||
extern crate diff;
|
||||
extern crate itertools;
|
||||
extern crate lalrpop_intern as intern;
|
||||
|
@ -30,15 +30,15 @@ impl<'m, 'grammar> Merge<'m, 'grammar> {
|
||||
inconsistent_state: StateIndex)
|
||||
-> Self {
|
||||
Merge {
|
||||
table,
|
||||
states,
|
||||
table: table,
|
||||
states: states,
|
||||
visited: Set::new(),
|
||||
original_indices: Map::new(),
|
||||
clones: Multimap::new(),
|
||||
target_states: vec![inconsistent_state],
|
||||
context_sets: ContextSets {
|
||||
unify,
|
||||
state_sets,
|
||||
unify: unify,
|
||||
state_sets: state_sets,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -29,9 +29,9 @@ impl<'grammar> LaneTableConstruct<'grammar> {
|
||||
pub fn new(grammar: &'grammar Grammar, start: NonterminalString) -> Self {
|
||||
let first_sets = FirstSets::new(grammar);
|
||||
Self {
|
||||
grammar,
|
||||
start,
|
||||
first_sets,
|
||||
grammar: grammar,
|
||||
start: start,
|
||||
first_sets: first_sets,
|
||||
}
|
||||
}
|
||||
|
||||
@ -64,7 +64,8 @@ impl<'grammar> LaneTableConstruct<'grammar> {
|
||||
states.iter()
|
||||
.flat_map(|s| Lookahead::conflicts(&s))
|
||||
.collect();
|
||||
return Err(TableConstructionError { states, conflicts });
|
||||
return Err(TableConstructionError { states: states,
|
||||
conflicts: conflicts });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -26,8 +26,8 @@ impl<'trace, 'grammar, L: Lookahead> LaneTracer<'trace, 'grammar, L> {
|
||||
-> Self {
|
||||
LaneTracer {
|
||||
states: states,
|
||||
first_sets,
|
||||
state_graph,
|
||||
first_sets: first_sets,
|
||||
state_graph: state_graph,
|
||||
table: LaneTable::new(grammar, conflicts),
|
||||
}
|
||||
}
|
||||
|
@ -342,7 +342,6 @@ fn paper_example_large_build() {
|
||||
let _tls = Tls::test();
|
||||
let grammar = paper_example_large();
|
||||
let _lr1_tls = Lr1Tls::install(grammar.terminals.clone());
|
||||
let lr0_err = build::build_lr0_states(&grammar, nt("G")).unwrap_err();
|
||||
let states = LaneTableConstruct::new(&grammar, nt("G")).construct()
|
||||
.expect("failed to build lane table states");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user