diff --git a/doc/development/compressed_state_table.md b/doc/development/compressed_state_table/main.md similarity index 98% rename from doc/development/compressed_state_table.md rename to doc/development/compressed_state_table/main.md index eb2584ee..9000de86 100644 --- a/doc/development/compressed_state_table.md +++ b/doc/development/compressed_state_table/main.md @@ -179,8 +179,8 @@ next_state = yydefgoto[lhs_id] ## Example -Take a look at compressed tables of "compressed_state_table.y". -See "compressed_state_table.output" for detailed information of symbols and states. +Take a look at compressed tables of "parse.y". +See "parse.output" for detailed information of symbols and states. ### `yytable` @@ -324,7 +324,7 @@ yypgoto = [ Because `0` is reserved for syntax error, Rule id starts with 1. ``` -# In "compressed_state_table.output" +# In "parse.output" Grammar 0 $accept: program "end of file" @@ -356,7 +356,7 @@ Grammar ``` For example, default action for state 1 is 4 (`yydefact[1] == 4`). -This means Rule 3 (`3 expr: NUM`) in "compressed_state_table.output" file. +This means Rule 3 (`3 expr: NUM`) in "parse.output" file. `yydefgoto` specifies next state id of the nonterminal. diff --git a/doc/development/compressed_state_table.output b/doc/development/compressed_state_table/parse.output similarity index 100% rename from doc/development/compressed_state_table.output rename to doc/development/compressed_state_table/parse.output diff --git a/doc/development/compressed_state_table.y b/doc/development/compressed_state_table/parse.y similarity index 100% rename from doc/development/compressed_state_table.y rename to doc/development/compressed_state_table/parse.y diff --git a/doc/development/compressed_state_table_parser.rb b/doc/development/compressed_state_table/parser.rb similarity index 100% rename from doc/development/compressed_state_table_parser.rb rename to doc/development/compressed_state_table/parser.rb