Changeset 266

Show
Ignore:
Timestamp:
03/16/08 17:39:43 (4 years ago)
Author:
BCS
Message:

fixed error in dparse.d
converted unittest to work with an local file and also added the external file it did work with

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/dparser/dparse.d

    r265 r266  
    856856        { 
    857857            ret ~=  
    858             ("PObject Terminal(char[] name : \""~ReduceWhite(FindChar!(':')(tmp)[0..$-1])~"\")(IParser p)" 
     858            ("PObject Terminal(char[] name : \""~GetID(FindChar!(':')(tmp)[0..$-1])~"\")(IParser p)" 
    859859            "{" 
    860860                "return Rule!(typeof(this), Parse_Rule!(\""~ReduceWhite(tmp)~"\"))(this,p);" 
     
    910910 
    911911    static const char[] nameIs = rule.Name; 
    912     pragma(msg, nameIs); 
     912    debug(dParse_light) pragma(msg, nameIs); 
    913913 
    914914    Stack!(Frame) backups; 
     
    11971197                "; 
    11981198 
    1199       const char[] gram2 = import("dmp.g"); 
     1199//        const char[] gram2 = import("dmp.g"); 
    12001200 
    12011201        PObject Terminal(char[] str)(IParser i){return null;} 
    12021202        PObject Action(char[] str)(PObject[] i){return null;} 
    12031203 
    1204 //        mixin(MakeMixin!("root",ReduceWhite(gram))); 
    1205       mixin(MakeMixin!("Module",ReduceWhite(gram2))); 
     1204      mixin(MakeMixin!("root",ReduceWhite(gram))); 
     1205//        mixin(MakeMixin!("Module",ReduceWhite(gram2))); 
    12061206    } 
    12071207