pejobo / beanshell2

Beanshell2, a scripting language for the Java Virtual Machine
40 stars 19 forks source link

Parser Error for binary number #95

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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 himesh.s...@gmail.com on 10 Jan 2014 at 2:50

Attachments:

morris821028 commented 6 years ago

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