From: Mike R. <jyt...@bl...> - 2002-08-09 20:01:08
|
Hey Everyone, I have a couple of questions. 1) I have been asked by my employer to modify the jython interface to by default treat all numbers as floats instead of ints. I think I have figured out how to do this. In python.jjt change these lines around line 802 of the file | ( t=<DECNUMBER> { jjtThis.setInteger(t.image, 10); } )#Int to | ( t=<DECNUMBER> { jjtThis.setFloat(t.image); } )#Float This seems to run through jjtree and javacc fine. But here comes my second question. 2) When ever I try to compile the .java files that are generated I get many missing symbol errors this happens with jython 2.1 and the CVS build 20020809. I don't believe this is due to my changes as the build fails on a clean version of the tree as well. I have tried compiling by hand and the build.xml with the CVS build, I have tried including the javacc zip file of classes as part of my classpath in the compile as well. I'm using jdk 1.3.1_04 (but have also tried 1.4.0_01) with javacc 2.1. If anyone has any ideas on how I can make this work or another way to change the default number format to float please let me know. Thanks --Mike |