Apparently 'T' is too short for a commodity. I'm guessing the parser 
assumes it's a flag instead. Replace it with 'TT', and the whole thing 
should work.

The doc 
<https://beancount.github.io/docs/beancount_language_syntax.html#commodities-currencies>
 
doesn't seem to mention this though.



On Friday, October 21, 2022 at 7:37:34 PM UTC-7 [email protected] wrote:

> I created a short test file reading:
>
> 1970-01-01 commodity T
>   name: "AT&T INC"
>   kind: "STOCK"
>   category: "LARGE"
>   cusip: "00206R102"
>
> 1970-01-01 open Assets:Schwab:Equities:T T
> 1970-01-01 open Assets:Schwab:Cash USD
>
> 2011-02-19 * "Buy 100 T"
>   Assets:Schwab:Equities:T 100 T {28.4575}
>   Assets:Schwab:Cash -2845.75 USD
>
> Running bean-check on it says:
>
> .../test.bean:1:       syntax error, unexpected FLAG, expecting CURRENCY
>
> .../test.bean:7:       syntax error, unexpected FLAG, expecting end of 
> file or EOL
>
> .../test.bean:11:      syntax error, unexpected FLAG, expecting end of 
> file or EOL or ATAT or AT
>
> Can someone tell me what I'm misunderstanding? Thanks
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/bef883fc-fd82-4814-badd-1f96a83a5f73n%40googlegroups.com.

Reply via email to