Fixed some bugs in Parser::firstSet and added a bit of caching. It still doesn't work quite right, though, there's some problem with nullable left recursion. However, it's better than it was, and I need to go to bed. More work later.
This commit is contained in:
15
tests/vectorTest.krak
Normal file
15
tests/vectorTest.krak
Normal file
@@ -0,0 +1,15 @@
|
||||
import io;
|
||||
import vector;
|
||||
|
||||
int main() {
|
||||
vector<int> intVec.construct();
|
||||
intVec.addBack(1);
|
||||
intVec.addBack(3);
|
||||
intVec.addBack(3);
|
||||
intVec.addBack(7);
|
||||
for (int i = 0; i < intVec.size(); i++;)
|
||||
print(intVec.at(i));
|
||||
|
||||
println();
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user