From a41abe896392e786cd8cc3a7255896fec137f100 Mon Sep 17 00:00:00 2001 From: Dominic Grimm Date: Mon, 27 Dec 2021 18:57:19 +0100 Subject: [PATCH] Updated parser class name --- src/sexpr.cr | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sexpr.cr b/src/sexpr.cr index 36f3ca6..b6bc065 100644 --- a/src/sexpr.cr +++ b/src/sexpr.cr @@ -8,11 +8,11 @@ module Sexpr alias Node = String | Body alias Body = Array(String) | Array(Node) - private class Wrapper + class Parser private property i = 0 private property source : String - private module Terms + module Terms STRING = /"/ SPACE = /\s/ LIST = /(#{SPACE})|[()]/ @@ -70,6 +70,6 @@ module Sexpr end def parse(source : String) : Body - Wrapper.new(remove_comments(source)).parse + Parser.new(remove_comments(source)).parse end end