diff options
Autocommit at 13.06.2022 @ 20:32
1 files changed, 11 insertions, 2 deletions
| -rw-r--r-- | src/Models/Table.cpp | 13 |
diff --git a/src/Models/Table.cpp b/src/Models/Table.cpp index cc503d5..b5638c9 100644 --- a/src/Models/Table.cpp +++ b/src/Models/Table.cpp @@ -12,9 +12,10 @@ // Rough implementation of the grammar // -// S -> W"=A"W | W"=A"W | WDW | WD.DW -// A -> Aa | Ab | ... | AZ | AD | A* | ... | a | b | ... +// S -> W"=A"W | W"A"W | WPDW | WPD.DW +// A -> Aa | Ab | ... | AZ | A0 | A1 | ... | A* | ... | a | b | ... | epsilon // D -> D0 | D1 | ... | D9 | 0 | 1 | ... | 9 +// P -> + | - | epsilon // W -> W | epsilon // // over the input file stream @@ -32,6 +33,14 @@ void A(std::ifstream& in) { } void Table::readFromFile(std::ifstream& inFile) { + while (inFile.peek() != EOF) { + W(inFile); + if (inFile.peek() == '"') inFile.get(); + + if (inFile.peek() == '=') { + + } + } } #include <iostream> |
