Interpreter up to 71/73 tests passing, the only ones that don't yet are the future ones. Struct size is still wrong though
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import io
|
||||
import string
|
||||
import ast_transformation
|
||||
import util
|
||||
import vector
|
||||
import string
|
||||
import mem
|
||||
@@ -151,7 +151,7 @@ obj regex (Object, Serializable) {
|
||||
var perenEnd = i + 1
|
||||
for (var depth = 1; depth > 0; perenEnd++;) {
|
||||
if (perenEnd >= regex_string.length())
|
||||
ast_transformation::error(string::string("can't find matching peren in: ") + regex_string)
|
||||
util::error(string::string("can't find matching peren in: ") + regex_string)
|
||||
// be careful, this isn't quite right yet
|
||||
/*var not_non_special = perenEnd == 0 || (regex_string[perenEnd-1] != '\\' && regex_string[perenEnd-1] != '[' && (perenEnd+1 >= regex_string.length() || regex_string[perenEnd+1] != ']'))*/
|
||||
var not_non_special = perenEnd == 0 || (regex_string[perenEnd-1] != '[' && (perenEnd+1 >= regex_string.length() || regex_string[perenEnd+1] != ']'))
|
||||
|
||||
Reference in New Issue
Block a user