libsapling  0.8.0
Functions
slr.h File Reference

Simple LR implementation. More...

#include "libsapling/cc/parser/action_table.h"
#include "libsapling/cc/parser/goto_table.h"

Go to the source code of this file.

Functions

node_t * slr__build_set_of_sets_of_lr0_items (grammar_t g)
 Constructs the set of sets of LR(0) items from a grammar. More...
 
void slr__print_tables (FILE *stream, action_table_t tbl_action, goto_table_t tbl_goto, node_t *C, grammar_t g)
 

Detailed Description

Simple LR implementation.

Function Documentation

◆ slr__build_set_of_sets_of_lr0_items()

node_t* slr__build_set_of_sets_of_lr0_items ( grammar_t  g)

Constructs the set of sets of LR(0) items from a grammar.

Returns
a path (set of sets of LR(0) items) with the constructed sets of LR(0) items.