[ANN] Nim0, a playground to learn compiler internals

2021-04-28 Thread bpr
It is Crelier's [OP2 Oberon-2 compiler](https://oberoncore.ru/library/op2_a_portable_oberon_2_compiler) that introduces an AST. Now I'm looking forward to nim2, which can hopefully have some rudimentary metaprogramming.

[ANN] Nim0, a playground to learn compiler internals

2021-04-28 Thread Araq
> If I wanted to have a more powerful bare compiler with an intermediate > representation, I would start from scratch. > > As it is, it limits the type of language experiments you can do with it. Fair enough.

[ANN] Nim0, a playground to learn compiler internals

2021-04-27 Thread spip
I don't care moving Nim0 repository from GitLab to GitHub if it can help collaboration on that project. I can even share it with another maintainer if someone is interested. For the current time, I've created a clone at . But I don't think that this project is w

[ANN] Nim0, a playground to learn compiler internals

2021-04-27 Thread xigoi
We don't need to make Microsoft's monopoly even worse.

[ANN] Nim0, a playground to learn compiler internals

2021-04-27 Thread Araq
I really appreciate this project, however: * Is it too late to put it on github so that I can collaborate more easily? * It needs an AST or comparable intermediate representation, otherwise all you can do is to pile up hacks on top of hacks... An AST is a great fit for a small language to tr

[ANN] Nim0, a playground to learn compiler internals

2021-04-26 Thread spip
If you want to understand how Nim compiler works, start by looking under the hood of the Nim0 compiler, a Nim-compatible toy language with a compiler and an emulator for a RISC CPU. This project is much smaller than the Nim compiler, everything being packed in 5 Nim files. But most important is