Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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/Tes...

And here is same the same program in the tentative concrete syntax:

https://github.com/robertmuth/Cwerg/blob/master/FrontEnd/Con...



I 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!


Honestly 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".




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: