Add support for comments

This commit is contained in:
madmaurice 2021-04-02 16:05:22 +02:00
parent 106a58991d
commit 31bab456b0

View file

@ -21,7 +21,11 @@ sub tokenize {
while ($str)
{
if ($str =~ s/^\(//)
if ($str =~ s/^;.*\n//)
{
# Comment. do nothing
}
elsif ($str =~ s/^\(//)
{
push @tokens, { type => LPAREN };
}