Huh, digging around in the source code I see it very specifically talks about "V" as being a valid currency symbol in v3:
https://github.com/beancount/beancount/blob/master/beancount/parser/lexer.l#L161-L204 It looks like my install is 2.3.4 (it was recommended on the homepage that we not use the master branch) On Friday, September 24, 2021 at 9:18:26 PM UTC-7 Jim Robinson wrote: > Oh, and please forgive the unbalanced transaction issue, I was just > messing around with the example documentation and hadn't corrected that > problem when I ran into the 'Invalid token' issue I was complaining about. > > On Friday, September 24, 2021 at 9:13:23 PM UTC-7 Jim Robinson wrote: > >> At first glance I can't see that there is a way to override what >> beancount is doing here. >> >> It appears as though it has some sort of an opinionated parsers as to >> what is considered valid for a Ticker Symbol, and it won't accept "V" (the >> symbol for Visa). It appears to be wanting an all-uppercase > 1 length >> symbol, which isn't really valid for the real world. >> >> Is there a way to override this behavior? I'm not spotting anything on >> my first pass of the options documentation. >> >> The following ledger fails to parse, complaining about an invalid token >> 'V' (specifically it is complaining about the use of the ticker symbol as a >> unit in "10.00 V", it's fine with the account name). >> >> 2014-02-16 open Assets:US:ETrade:Cash >> 2014-02-16 open Assets:US:ETrade:V >> 2014-02-16 open Expenses:Financial:Commissions >> 2014-02-16 open Equity:OpeningBalances >> >> 2014-02-16 * "Opening Balance" >> Assets:US:ETrade:Cash 10,000.00 USD >> Equity:OpeningBalances >> >> 2014-02-16 * Example purchase of stock symbol V (Visa) >> Assets:US:ETrade:V 10.00 V {231.59 USD} >> Assets:US:ETrade:Cash -23,159.00 USD >> Expenses:Financial:Commissions 9.95 USD >> >> -- You received this message because you are subscribed to the Google Groups "Beancount" group. To unsubscribe from this group and stop receiving emails from it, send an email to beancount+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/2436d5fd-314c-45c5-8853-8880588661afn%40googlegroups.com.