Parser fails after headers on Android

11 views
Skip to first unread message

Zap

unread,
Sep 22, 2010, 9:36:38 AM9/22/10
to abc4j
Hi Abc coders,

I've started working on a simple Andorid app for bouncing an abc file
to a server which turns it into either midi or PDF, and then I
stumbled onto abc4j and thought it might be cool for verifying the
code locally first.

I've pulled down he svn code and removed the UI and midi parts and it
seems to work fine for the headers, but when it comes to the actual
music it gets confused.

Depending on what I put on the K: line I can vary the error somewhat,
but it always fails:

If I have just "K:C" and then "gg" on the next line it complains about
"Expecting SPACE instead of LINE FEED..."

If I add a trailing space to "K:C " and then "gg" in the next line it
complains about "Expecting TEXT instead of BASE NOTE..."

I'm the first to admit that my abc is a bit rusty, so maybe I'm just
stupid? I'm at revision 434 btw.

Best / Jonas

PS. Full (minimal) test case:

X:1
T:Yo the jig
M:4/4
C:noOne
K:C
ggGFG BAB |]

Lionel Gueganton

unread,
Sep 23, 2010, 3:03:43 AM9/23/10
to abc4j
hi Jonas,
I was thinking :
is that specific to Android or do you get the same behavior if you run
with the "classical" VM with a standard JDK ?
Lionel.
Reply all
Reply to author
Forward
0 new messages