Re: syntax error, unexpected ACCOUNT

2017-08-05 Thread jkepler
Yup. Beginners error here.

Thanks for clarifying that so quickly for me.

Joel

Le samedi 5 août 2017 18:28:40 UTC+2, Martin Blais a écrit :
>
> You cannot insert comment syntax between the postings.
> (This limitation is mainly due to the special treatment indentation has 
> and some limitations of the lexer implementation. In theory it would be 
> fixable, but falls under the "we need to rewrite the lexer" rubric.)
>
>
> On Sat, Aug 5, 2017 at 11:41 AM, > wrote:
>
>> Hello,
>>
>> I'm a Ledger user thinking of switching to Beancount based on what I 
>> understand from the documentation on how it handles lots. While trying to 
>> import my data from Ledger to Beancount using *bean-check* I'm getting a 
>> syntax error. Here's a small sample from my data:
>>
>> 2013-01-01 open Expenses:Crypto:NetworkFees BTC
>>
>> ; lots of other transactions were here
>>
>> 2017-06-27 * "Bitcoin network fee"
>> ; Account: Pocket money
>> Expenses:Crypto:NetworkFees   0.00082487 BTC
>> Assets:Crypto:Bitcoin
>>
>> When I run *bean-check* on that file, I receive the following error 
>> message:
>>
>> joel@bregalad:~/beancount$ bean-check ledger.bc
>>
>> /home/joel/beancount/ledger.bc:3308:*syntax error, unexpected 
>> ACCOUNT*
>>
>> Any ideas what's going on with my directives? Maybe this is an obvious 
>> beginners mistake, but I can't see it.
>>
>> Joel
>>
>> -- 
>> 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+...@googlegroups.com .
>> To post to this group, send email to bean...@googlegroups.com 
>> .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/beancount/ea767f56-d10f-4417-90d8-096578b286fe%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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 post to this group, send email to beancount@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/3da300b9-af76-419e-ba8c-45dfeb1c49b7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: syntax error, unexpected ACCOUNT

2017-08-05 Thread Martin Blais
You cannot insert comment syntax between the postings.
(This limitation is mainly due to the special treatment indentation has and
some limitations of the lexer implementation. In theory it would be
fixable, but falls under the "we need to rewrite the lexer" rubric.)


On Sat, Aug 5, 2017 at 11:41 AM,  wrote:

> Hello,
>
> I'm a Ledger user thinking of switching to Beancount based on what I
> understand from the documentation on how it handles lots. While trying to
> import my data from Ledger to Beancount using *bean-check* I'm getting a
> syntax error. Here's a small sample from my data:
>
> 2013-01-01 open Expenses:Crypto:NetworkFees BTC
>
> ; lots of other transactions were here
>
> 2017-06-27 * "Bitcoin network fee"
> ; Account: Pocket money
> Expenses:Crypto:NetworkFees   0.00082487 BTC
> Assets:Crypto:Bitcoin
>
> When I run *bean-check* on that file, I receive the following error
> message:
>
> joel@bregalad:~/beancount$ bean-check ledger.bc
>
> /home/joel/beancount/ledger.bc:3308:*syntax error, unexpected ACCOUNT*
>
> Any ideas what's going on with my directives? Maybe this is an obvious
> beginners mistake, but I can't see it.
>
> Joel
>
> --
> 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 post to this group, send email to beancount@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/beancount/ea767f56-d10f-4417-90d8-096578b286fe%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 post to this group, send email to beancount@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/CAK21%2BhNJdrwqaFnOWYN6zuESiugJW45fP33N%2BoxDXMdJpNVN9w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: syntax error, unexpected ACCOUNT

2017-08-05 Thread Cheng Zhen
Comment syntax error.

ref:
https://docs.google.com/document/d/1wAMVrKIA2qtRGmoVDSUBJGmYZSygUaR0uOMW1GV3YE0/edit#heading=h.9zjhwskw53j8

Cheng Zhen
http://wogong.net/ 

On Sat, Aug 5, 2017 at 11:41 PM,  wrote:

> Hello,
>
> I'm a Ledger user thinking of switching to Beancount based on what I
> understand from the documentation on how it handles lots. While trying to
> import my data from Ledger to Beancount using *bean-check* I'm getting a
> syntax error. Here's a small sample from my data:
>
> 2013-01-01 open Expenses:Crypto:NetworkFees BTC
>
> ; lots of other transactions were here
>
> 2017-06-27 * "Bitcoin network fee"
> ; Account: Pocket money
> Expenses:Crypto:NetworkFees   0.00082487 BTC
> Assets:Crypto:Bitcoin
>
> When I run *bean-check* on that file, I receive the following error
> message:
>
> joel@bregalad:~/beancount$ bean-check ledger.bc
>
> /home/joel/beancount/ledger.bc:3308:*syntax error, unexpected ACCOUNT*
>
> Any ideas what's going on with my directives? Maybe this is an obvious
> beginners mistake, but I can't see it.
>
> Joel
>
> --
> 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 post to this group, send email to beancount@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/beancount/ea767f56-d10f-4417-90d8-096578b286fe%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 post to this group, send email to beancount@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/CAPOA78bd94d1W8GN8DCa9Mi-1zAXCEtKrUmcc315Co0oka6Dug%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.