Fixed the parse bug. I think it's legal for the post-shift table check to be invalid and you have to account for that in the table

This commit is contained in:
Nathan Braswell
2015-12-26 01:52:29 +00:00
parent 5476289b51
commit 22b334a2ae
5 changed files with 18 additions and 6 deletions

View File

@@ -9,11 +9,11 @@ import tree:*
import serialize:*
fun main():int {
var a.construct(): grammer
/*var file_name = string("../krakenGrammer.kgm")*/
var file_name = string("../simplifiedKrakenGrammer.kgm")
var file_name = string("../krakenGrammer.kgm")
/*var file_name = string("../simplifiedKrakenGrammer.kgm")*/
/*var file_name = string("grammer.kgm")*/
var compiled_name = file_name + string(".comp_new")

5
tests/to_import.krak Normal file
View File

@@ -0,0 +1,5 @@
var a = 1

View File

@@ -1 +1,6 @@
why {}
import to_import
fun main(): int {
return 0
}