Compiler/Verifying syntax: Difference between revisions

m
Line 139:
end
s = strip(s)
# Julia allows expressions like 2 + + + 3 but these are disallowednot allowed here
if occursin(r"(and|or|[\=\<\+\-\*\/])\s*(and|or|[\=\<\+\-\*\/])", s) ||
occursin(r"(^(and|^or|^[\=\<\+\-\*\/]))|((and|or|[\=\<\+\-\*\/])$)", s)
4,105

edits