I'm working on a project which uses Julia as an advanced DSL for manipulating financial data.
The proposal is to apply the
string on the right of the @ operator to the macro identified on the left. The element to the right of the @ operator would be parsed as an un-escaped string up to the first white space.
For example
foo@myvalue is equivalent to @foo "myvalue"
view this as equivalent to the non-standard abstract string literal form foo"myvalue"
The motivator for this is to support a terse natural DSL within Julia,
EQUITY@MSFT # Fetch a specify equity by ticker
an additional examples might be
BOND@T,4.75,2041 # Fetch a specific bond
BOND@T,*,2020-2030 # Fetch all treasury bonds maturing in the given year range
I'm happy to have a look at the parser, though my scheme is not as good as my lex/yacc,
Michael