module things, jfc

This commit is contained in:
Poojawa
2018-09-11 07:51:01 -05:00
parent 8b9ef1e400
commit 284e9d0325
695 changed files with 11343 additions and 5661 deletions
+5 -4
View File
@@ -196,9 +196,10 @@
/proc/SDQL_testout(list/query_tree, indent = 0)
var/static/whitespace = "    "
var/spaces = ""
for(var/s = 0, s < indent, s++)
spaces += " "
spaces += whitespace
for(var/item in query_tree)
if(istype(item, /list))
@@ -212,12 +213,12 @@
if(!isnum(item) && query_tree[item])
if(istype(query_tree[item], /list))
to_chat(usr, "[spaces] (")
to_chat(usr, "[spaces][whitespace](")
SDQL_testout(query_tree[item], indent + 2)
to_chat(usr, "[spaces] )")
to_chat(usr, "[spaces][whitespace])")
else
to_chat(usr, "[spaces] [query_tree[item]]")
to_chat(usr, "[spaces][whitespace][query_tree[item]]")
@@ -294,8 +294,8 @@
break
parse_error("Expected ',' or ']' after array assoc value, but found '[token(i)]'")
return i
i++
continue
i++
continue
temp_expression_list = list()
i = expression(i, temp_expression_list)
while(token(i) && token(i) != "]")
@@ -331,7 +331,7 @@
//string: ''' <some text> ''' | '"' <some text > '"'
/datum/SDQL_parser/proc/string(i, list/node)
if(copytext(token(i), 1, 2) in list("'", "\""))
node += copytext(token(i),2,-1)
node += token(i)
else
parse_error("Expected string but found '[token(i)]'")
return i + 1