1: // Author: Jeffrey Bakker  |  Date: May14th 2002  |  langjava.cpp
     2: 
     3: // the Java Language definition file for Web C Plus Plus
     4: // Webcpp Copyright (C) 2002 Jeffrey Bakker
     5: 
     6: 
     7: #include "langjava.h" 
     8: 
     9: LangJava::LangJava() {
    10: 	
    11: 	fill();
    12: 	init_switches();
    13: 
    14: 	doSymbols   = Yes;
    15: 	doLabels    = Yes;
    16: 	doBigComnt  = Yes;
    17: 	doCinComnt  = Yes;
    18: }
    19: 
    20: void LangJava::fill() {
    21: 
    22: 	// add Java keywords --------------------------------------------------
    23: 	string K[] = {
    24: 		"abstract","break","case","catch","class","const",
    25: 		"continue","default","do","else","extends","final","false",
    26: 		"for","if","implements","import","instanceof","interface",
    27: 		"native","new","null","package","private","protected","public",
    28: 		"register","return","super","switch","synchronized","this",
    29: 		"true","throws","throw","transient","try","while"
    30: 	};
    31: 	for(int k=0;k < 38;k++) {keys.push_back(K[k]);}
    32: 
    33: 	string T[] = {
    34: 		"boolean","byte","char","double","float","int","long","short",
    35: 		"static","void","volatile"
    36: 	};
    37: 	for(int t=0;t < 11;t++) {types.push_back(T[t]);}
    38: }
    39: 
    40: 



w e b c p p
web c plus plus