File tree Expand file tree Collapse file tree 4 files changed +10144
-6
lines changed
Expand file tree Collapse file tree 4 files changed +10144
-6
lines changed Original file line number Diff line number Diff line change @@ -70,8 +70,11 @@ class LL1Parser {
7070 * @brief Print the LL(1) parsing table to standard output.
7171 *
7272 * Displays the LL(1) table for debugging and analysis.
73+ * @param old Set to true to use the old format when printing the table.
74+ * The old format is ideal when the grammar is large and does not fit well into
75+ * the table generated.
7376 */
74- void PrintTable ();
77+ void PrintTable (bool old );
7578
7679 /* *
7780 * @brief Prints the remaining symbols in the parsing stack after the
@@ -230,6 +233,8 @@ class LL1Parser {
230233 */
231234 bool CreateLL1Table ();
232235
236+ void PrintTableUsingTabulate ();
237+
233238 // / @brief Size limit for symbol history trace, defaults to 5.
234239 const size_t kTraceSize {5 };
235240
You can’t perform that action at this time.
0 commit comments