News for hackers. Stuff that matters.
Re:Mugo, a toy compiler for a subset of Go that can compile ... by yencabulator on Monday April 12, 2021 @02:28PM (#26783156)
I think it's just a case of keeping it simple. Basically, it looks like Mugo supports what Mugo consumes (and about two simple additions). Adding local `var` parsing likely would complicate the hand-crafted parser.
Re:Mugo, a toy compiler for a subset of Go that can compile ... by benhoyt on Monday April 12, 2021 @03:03PM (#26783636)
Yes, that's correct. I actually initially implemented local "var" parsing, but was never using it in the compiler, so I removed it to trim it down and keep things as simple as reasonably possible.