Go Down

Topic: Arduino Asterisk Parsing Error (Read 1 time) previous topic - next topic


Hello. I'm new to the forum, so i hope that i'm posting in the right place.

I'm currently working on an OSC pattern matching (similar to regex) for the Arduino. An important matching symbol is the ASTERISK ( * ). OSC messages are backslash delimited and when put a pattern like this for example:

Code: [Select]

Even thought the "/*" is clearly in quotes, i get the error:

Code: [Select]
java.lang.RuntimeException: Missing the */ from the end of a /* comment */
at processing.app.Sketch.scrubComments(Sketch.java:1738)
at processing.app.preproc.PdePreprocessor.writePrefix(PdePreprocessor.java:105)
at processing.app.Sketch.preprocess(Sketch.java:1336)
at processing.app.Sketch.preprocess(Sketch.java:1288)
at processing.app.Sketch.build(Sketch.java:1570)
at processing.app.Sketch.build(Sketch.java:1552)
at processing.app.Editor$DefaultRunHandler.run(Editor.java:1954)
at java.lang.Thread.run(Thread.java:680)

I've tried alternates to the "/*" like "\u002A", but that also doesn't work. this seems like an IDE bug to me.

any work arounds would be greatly appreciated.


Jan 05, 2012, 03:07 am Last Edit: Jan 05, 2012, 03:10 am by pYro_65 Reason: 1
Not sure if it is error, but try a completely different approach until you work it out.

Code: [Select]

char c_In[] = { '/', '*', '/', '?', '\0' };
Forum Mod anyone?

Coding Badly

Code: [Select]
OSCMessage.match("/" "*/?");

Should also work.



I've also found this error when constructing a HTTP 1.1 header
Code: [Select]
WiFly.println("Accept: */*");
Did it get reported to those who need to know?

"There is no problem so bad you can't make it worse" - retired astronaut Chris Hadfield

Coding Badly

Please check here...


Please check here...
I didn't find it, so added Issue 817: Comment /* */ parsing should ignore these sequences in string constants,  hopefully it isn't a duplicate but if it is at least it's covered.

Cheers !
"There is no problem so bad you can't make it worse" - retired astronaut Chris Hadfield

Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131