Akuli / jou

Yet another programming language
MIT License
11 stars 4 forks source link

AST printing self #358

Closed Akuli closed 1 year ago

Akuli commented 1 year ago

asd.jou:

class Foo:
    def bar(self) -> void:
        pass

Output of ./jou --parse-only asd.jou:

===== AST for file "asd.jou" =====
line 1: Define a class "Foo" with 1 members:
  method bar(self:  [line 0]) -> void [line 2]
  `--- [line 3] pass

There shouldn't be [line 0] after self. Also the two consecutive spaces are weird.