beanshell2 icon indicating copy to clipboard operation
beanshell2 copied to clipboard

Parser Error for binary number

Open GoogleCodeExporter opened this issue 10 years ago • 1 comments

What steps will reproduce the problem?
1.When Number is entered in binary format eg: int anInt = 0b101;
2.
3.

What is the expected output? What do you see instead?
// Error: Parser Error: Parse error at line 1, column 121.  Encountered: b101

What version of the product are you using? On what operating system?
2.1.7 

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 10 Jan 2014 at 2:50

Attachments:

GoogleCodeExporter avatar Apr 22 '15 19:04 GoogleCodeExporter

Java 7, Project Coin,

Look at javaparser/javaparser. Their java 9 syntax grammar https://github.com/javaparser/javaparser/blob/master/javaparser-core/src/main/javacc/java.jj

morris821028 avatar Apr 19 '18 15:04 morris821028