>>>>> Harshad RJ <[email protected]> writes:

> Do you have a lexial analyser in ledger? This sounds more like a bug with
> the lexer while tokenising the input.

It was actually *designed* this way.  For example, an expression like "USD100"
has a well-known meaning.  I cannot disambiguate that from something like
"usd_1", not without making _ special.

So, this is not something I want to fix, because it has more implications than
you may realize based on the way the Ledger expression language was designed.

Even if you could make the "define" keyword smart enough to do this (which
would be trivial, actually), you would not being able to refer to your new
variable name in any sub-expressions, as it would be seen as a commodity+value
expression.

John

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to