[Introspector-developers] test output for java
Status: Beta
Brought to you by:
mdupont
|
From: James M. D. <mdu...@ya...> - 2003-01-20 23:55:20
|
Dear Gary, Here is the promised java code, I could not get the lego class lib to compile. but it works from a simplified test. in fact, the code you gave me was not java, but a strange form of the mindstorms stuff mixed with java : http://introspector.sourceforge.net/2003/01/21/test.java/ here is the source : http://introspector.sourceforge.net/2003/01/21/test.java/test.java /* import josx.platform.rcx.Motor; import josx.platform.rcx.Sound; import bb; */ public class test { public static void bb_Forward (int x ) { } public static void bb_TurnLeft (int x ) { } public static void main(String[] args) throws InterruptedException { for (int myIx = 0; myIx < 4; myIx++) { bb_Forward(100); bb_TurnLeft(75); } } } here is the script to run it : http://introspector.sourceforge.net/2003/01/21/test.java/runtest.sh #export CLASSPATH=/usr/share/java/libgcj.jar #~/gcc-main/gcc-introspector-0.1/gcc/stage1/jc1 test.java -fhash-synchronization -fno-use-divide-subroutine -fuse-boehm-gc -fnon-call-exceptions -fkeep-inline-functions -g1 -fdump-class-hierarchy -fdump-tree-original -fdump-translation-unit here is the class http://introspector.sourceforge.net/2003/01/21/test.java/_global__.class_.ntriples Here is a variable declaration : <#id-25> <node_fields#filename> <#filename-test.java> . <#id-25> <node_fields#linenumber> "18" . <#id-25> <node_fields#name> <node_types#identifier_node> . <#id-25> <node_fields#name> <#id-32> . <#id-32> <node_fields#strg> "myIx" . <#id-32> <node_fields#tree-code> <node_types#identifier_node> . <#id-25> <node_fields#algn> "32" . <#id-25> <node_fields#size> <node_types#integer_cst> . <#id-25> <node_fields#size> <#id-33> . <#id-25> <node_fields#type> <node_types#integer_type> . <#id-25> <node_fields#type> <#id-27> . <#id-25> <node_fields#tree-code> <node_types#var_decl> . Happy? mike ===== James Michael DuPont http://introspector.sourceforge.net/ __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com |