Skip to content

Commit

Permalink
Merge #193
Browse files Browse the repository at this point in the history
193: This comment has been incorrect since we moved to using SparseVec. r=ptersilie a=ltratt



Co-authored-by: Laurence Tratt <[email protected]>
  • Loading branch information
bors[bot] and ltratt authored Jun 1, 2020
2 parents ee21051 + a3bca88 commit ce09c90
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions lrtable/src/lib/statetable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,6 @@ impl<StorageT> fmt::Display for StateTableError<StorageT> {
/// separate hashmaps, rather than a single table, due to the different types of their values.
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
pub struct StateTable<StorageT> {
// For actions, we use a HashMap as a quick representation of a sparse table. We use the normal
// statetable representation where rows represent states and columns represent tokens. Thus
// the statetable:
// A B
// 0 shift 1
// 1 shift 0 reduce B
// is represented as a hashtable {0: shift 1, 2: shift 0, 3: reduce 4}.
actions: SparseVec<usize>,
state_actions: Vob,
gotos: SparseVec<usize>,
Expand Down

0 comments on commit ce09c90

Please sign in to comment.