If you want DSLs to have arbitrary syntax, then you need to put them inside of strings or the moral equivalent thereof (e.g. Julia's backtick syntax for commands). If you're ok with the DSL using Julia syntax, then you can use a macro. Anything besides that ends up delving into making Julia's grammar extensible somehow, which just isn't going to happen – parsers aren't really composable <http://tratt.net/laurie/blog/entries/parsing_the_solved_problem_that_isnt> like this.
On Sun, Nov 16, 2014 at 7:30 PM, Jeff Waller <[email protected]> wrote: > > Its just something inside me that rebels against having code inside > strings. > > Yea, I don't like it either. If feels half-done. > > New token? @@ >
