Skip to content

Commit 04aeebf

Browse files
committed
use of tabulate
1 parent b748287 commit 04aeebf

File tree

4 files changed

+10144
-6
lines changed

4 files changed

+10144
-6
lines changed

include/ll1_parser.hpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)