compiler/tests/extras/PPCompiledJavaSyntaxTest.st
changeset 459 4751c407bb40
parent 452 9f4558b3be66
child 460 87a3d30ab570
child 502 1e45d3c96ec5
equal deleted inserted replaced
452:9f4558b3be66 459:4751c407bb40
     7 	classVariableNames:''
     7 	classVariableNames:''
     8 	poolDictionaries:''
     8 	poolDictionaries:''
     9 	category:'PetitCompiler-Extras-Tests-Java'
     9 	category:'PetitCompiler-Extras-Tests-Java'
    10 !
    10 !
    11 
    11 
    12 PPCompiledJavaSyntaxTest comment:''
       
    13 !
       
    14 
       
    15 !PPCompiledJavaSyntaxTest class methodsFor:'as yet unclassified'!
    12 !PPCompiledJavaSyntaxTest class methodsFor:'as yet unclassified'!
    16 
    13 
    17 resources
    14 resources
    18     ^ (OrderedCollection with: PPCompiledJavaResource)
    15     ^ (OrderedCollection with: PPCompiledJavaResource)
    19         addAll: super resources;
    16         addAll: super resources;
    70 
    67 
    71     self
    68     self
    72         parse:
    69         parse:
    73         '{
    70         '{
    74             System.out.println("Hello World!!");
    71             System.out.println("Hello World!!");
    75  	       	System.out.println("Hello World!!");
    72  			   		System.out.println("Hello World!!");
    76         }'
    73         }'
    77         rule: #block
    74         rule: #block
    78 !
    75 !
    79 
    76 
    80 testCompilationUnit1
    77 testCompilationUnit1
   107 
   104 
   108 testCompilationUnit4
   105 testCompilationUnit4
   109 
   106 
   110     self parse: '
   107     self parse: '
   111                     public class OddEven {
   108                     public class OddEven {
   112  						private int input;
   109  												private int input;
   113  					  public static void main(String[] args) {
   110  										  public static void main(String[] args) {
   114      					OddEven number = new OddEven();
   111      										OddEven number = new OddEven();
   115                             number.showDialog(); }
   112                             number.showDialog(); }
   116                     public void showDialog() {
   113                     public void showDialog() {
   117        
   114        
   118     try {
   115     try {
   119           
   116