Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
wycliffb
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
31.
▲
by
wycliffb
8y ago
> would recommend looking into writing a grammar, have that generate your AST, then do some transformations on the AST to generate code. you will save a lot of time. I had this thought, so I used a parser combinator (mpc) to generate the
32.
▲
by
wycliffb
8y ago
You might find Types and programming languages - Benjamin C. Pierce to be particularly interesting. There's a GitHub repo with a list of materials, can't seem to find it. When I do, will remember to share!
33.
▲
by
wycliffb
8y ago
Will commence working on a doc to explain some design choices, and what some non-obvious code fragments do; will update here when I commit. There's no subtyping being done currently. The 'match type' construct matches the typ
34.
▲
by
wycliffb
8y ago
There's a sample file main.w in the snapshot folder, there's also a grammar file at the source root.
35.
▲
by
wycliffb
8y ago
Will appreciate comments on the implementation/design choices.
36.
▲
Show HN: Whack – A simply-designed compiled programming language
(github.com)
57 points
by
wycliffb
8y ago
|
45 comments