News for hackers. Stuff that matters.
Re:A New R6RS Scheme Compiler by noelwelsh on Wednesday October 02, 2019 @06:35AM (#21134948)
I have not.
Re:A New R6RS Scheme Compiler by mapcars on Wednesday October 02, 2019 @06:42AM (#21134981)
They basically have PEG-kind of parser built into the language allowing you to execute arbitrary code up to modifying the parsing rules themselves.

Here's small shell dialect I made while learning it: https://gitlab.com/maxvel/red-shell-dialect/blob/master/shel...

So you can do things like

  shell/run [cat %/etc/passwd | grep {root} > myvar]
where both `cat` and `grep` can be either shell commands or Red functions and you can redirect input/output from/to variables as well as files. Also you can mixin Red data types, like in example here `%/etc/passwd` is a file instance, not a string.

Also the language itself heavily utilizes this (called Parse dialog) for example they don't have regular expressions at all, JSON is parsed using it as well, GUI system is a fully separate dialog and so on.

Re:A New R6RS Scheme Compiler by 9214 on Wednesday October 02, 2019 @01:36PM (#21138890)
s/dialog/dialect/

Concept of a dialect (aka 'embedded DSL') is not tied to Parse - you can implement one with it for sure, but it's not a strict requirement.