|
Author |
Topic: println weirdness (Read 805 times) |
|
gsm
|
println weirdness
« on: Apr 30th, 2003, 12:07am » |
|
Might be a fun one to resolve... Code: println("1"); println("2"); println("3"); //println("4"); println("5"); println("6"); println("7"); println("8"); println("9"); println("0"); |
| if i uncomment println("4"), i get a "Syntax error: unexpected token: c" error
|
|
|
|
fry
|
Re: println weirdness
« Reply #1 on: May 1st, 2003, 4:39am » |
|
hm, fun like dental visit? good lord. the parser turns that to complete mush for some reason. p5 thinks that code is: Code:void draw() { println("1"); println("2"); println("3"); println("4")c HJAFLDF("]")c HJAFLDF("^")c HJAFLDF("_")c HJAFLDF("`")c HJAFLDF("a")c HJAFLDF("X")c } |
| i know where the problem is, but not why it's getting triggered. i'll look into it more soon.
|
|
|
|
benelek
|
Re: println weirdness
« Reply #2 on: May 2nd, 2003, 3:46pm » |
|
on May 1st, 2003, 4:39am, fry wrote:hm, fun like dental visit ... i know where the problem is, but not why it's getting triggered. i'll look into it more soon. |
| sometimes i wish we were all in on the mechanics of the development problems as you are. it's somewhat adventurous and somehow exciting, but i'd imagine, as you say, it is a bit like having teeth pulled!
|
|
|
|
fry
|
Re: println weirdness
« Reply #3 on: May 3rd, 2003, 1:02am » |
|
on May 2nd, 2003, 3:46pm, benelek wrote: sometimes i wish we were all in on the mechanics of the development problems as you are. it's somewhat adventurous and somehow exciting, but i'd imagine, as you say, it is a bit like having teeth pulled! |
| yeah, we hope to have folks more involved when we hit beta (and would like more people involved in the process). we need time to clean the code and have it more ready for public consumption (along with dealing with some licensing issues with our employers) before we can get it online and encourage everyone to muck around with it. though if people are really chomping at the bit then maybe we can move that timeline up. as beta probably won't be until late summer. a hint though, is that for weird errors like this one, you can peek in lib/build for a Temporary_NNNN_NNNN.java file that will have the code that p5 has translated and is trying to run.
|
|
|
|
fdb
|
Re: println weirdness
« Reply #4 on: May 3rd, 2003, 9:41pm » |
|
I think this problem might be related. In trying to write an SVG file from proce55ing, this line of code: System.out.println("<?xml version=\"1.0\" standalone=\"no\"?>"); gave this error: Syntax error: unexpected token: standalone Of course, this is valid java code, as a little test using the jdk compiler will show.
|
|
|
|
pollux
|
Re: println weirdness
« Reply #5 on: May 5th, 2003, 7:38pm » |
|
i've been having A LOT of "Syntax error: unexpected token: c" errors, but i figured it was since i'm using the Internatinal english keyboard setting, which in order to actually put the quotation mark ask you to press either a letter or the space bar (if you press quotes and a you get the ä [umlaud or dierecis a U+00E4], or á [grave accent a U+00E1]) so i figured it was something in the key code generated by the quotes. sometimes it dissapeared when adding a space between the quotes and anything around, like this: println( " a " ); or copying/pasting already set quotes (not an easy task on a 100+lines code) btw, now i'm getting the impression it happened more when quoting numbers, as i remember it happening a lot with the number 4 in one applet (but not 100% sure; can test if necessary) hope it helps. can include sample code if it helps. (WINXP, JRE1.4.1_02, 0054)
|
« Last Edit: May 7th, 2003, 5:53am by pollux » |
|
pollux | www.frwrd.net
|
|
|
fry
|
Re: println weirdness
« Reply #7 on: Sep 2nd, 2003, 2:13am » |
|
fixed in rev 60 with danm's new parser. yay!
|
|
|
|
|