3 ms·
Also with some tweaking you can push s-expr pretty far WRT readability. Here is an example of a cwerg program using "enhanced" s-exprs: https://github.com/robe
by muth02446 3y ago
Also with some tweaking you can push s-expr pretty far WRT readability.
Here is an example of a cwerg program using "enhanced" s-exprs:
https://github.com/robertmuth/Cwerg/blob/master/FrontEnd/TestData/wordcount.cw https://github.com/robertmuth/Cwerg/blob/master/FrontEnd/Tes...
And here is same the same program in the tentative concrete syntax:
https://github.com/robertmuth/Cwerg/blob/master/FrontEnd/ConcteteSyntax/wordcount.concrete.cw https://github.com/robertmuth/Cwerg/blob/master/FrontEnd/Con...
- lelanthran 3y agoHonestly I'm doing pretty much the same thing; been through several iterations of AST without yet deciding on a syntax, other than "Easy for C Programmers" and "Doesn't look like someone ate alphabet soup and vomited it all over the screen".
- bonki 3y agoI had skimmed through the readme and then went straight to the example folder so missed the fact that this is not supposed to be the final concrete syntax, makes much more sense now!