Example 7: Compiling a rule

Java code:

    /*
      Head-Complement rule
    */
    addRule
      ( (new RuleX
	(" [pos SYNSEM:LOC:CAT:[COMPS:[elist]  "+
	 "                      SPR: #1      ] "+
	 " ] ->                                "+
	 " H[SYNSEM:LOC:CAT:[ COMPS:#0         "+
	 "                    SPR:  #1 ]       "+
	 "  ] #0=[]   ",
         this) ).build() );


© 2000-2007 Vlado Keselj, last update: August 30, 2005.