Updated parser class name

This commit is contained in:
Dominic Grimm 2021-12-27 18:57:19 +01:00
parent 5f8041c60f
commit a41abe8963

View file

@ -8,11 +8,11 @@ module Sexpr
alias Node = String | Body alias Node = String | Body
alias Body = Array(String) | Array(Node) alias Body = Array(String) | Array(Node)
private class Wrapper class Parser
private property i = 0 private property i = 0
private property source : String private property source : String
private module Terms module Terms
STRING = /"/ STRING = /"/
SPACE = /\s/ SPACE = /\s/
LIST = /(#{SPACE})|[()]/ LIST = /(#{SPACE})|[()]/
@ -70,6 +70,6 @@ module Sexpr
end end
def parse(source : String) : Body def parse(source : String) : Body
Wrapper.new(remove_comments(source)).parse Parser.new(remove_comments(source)).parse
end end
end end