Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/backends/llk.c
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ int h_llk_compile(HAllocator* mm__, HParser* parser, const void* params)

// TODO: eliminate common prefixes
// TODO: eliminate left recursion
// TODO: avoid conflicts by splitting occurances?
// TODO: avoid conflicts by splitting occurrences?

// generate table and store in parser->backend_data.
HLLkTable *table = h_llktable_new(mm__);
Expand Down
4 changes: 2 additions & 2 deletions src/cfgrammar.c
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ HStringMap *h_stringmap_copy(HArena *a, const HStringMap *m)
return res;
}

/* Replace all occurances of old in m with new.
/* Replace all occurrences of old in m with new.
* If old is NULL, replace all values in m with new.
* If new is NULL, remove the respective values.
*/
Expand Down Expand Up @@ -554,7 +554,7 @@ const HStringMap *h_follow_(size_t k, HCFGrammar *g, HCFChoice **s)

const HStringMap *h_follow(size_t k, HCFGrammar *g, const HCFChoice *x)
{
// consider all occurances of X in g
// consider all occurrences of X in g
// the follow set of X is the union of:
// {$} if X is the start symbol
// given a production "A -> alpha X tail":
Expand Down