Changeset 140

Show
Ignore:
Timestamp:
01/20/08 12:22:34 (10 months ago)
Author:
dan.lewis
Message:

Wrote clean and make bat files. Very very simple, but eliminates any typing to get what you want.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.9/source/interpreter.d

    r139 r140  
    88 
    99private import 
    10     methods, // for debugging only 
    1110    structure, 
    12     TEXT = text, 
    1311    value; 
    14  
    15 private import 
    16     std.string; // for debugging only 
    17  
    1812 
    1913/* 
     
    4943    v.a = buffer; 
    5044    v.type = TYPE.STATEMENTS; 
    51     scope(exit) 
    52         dumpTree(v, 1); 
     45    debug 
     46        scope(exit) 
     47            dumpTree(v, 1); 
    5348} 
    5449 
     50debug 
    5551void dumpTree(Value v, int tabDepth) 
    5652{ 
     
    124120void parseBinaryOperator() 
    125121{ 
    126     printf("!%d : parseBinaryOperator()\n",c); 
     122    debug printf("!%d : parseBinaryOperator()\n",c); 
    127123    switch(c[0]) { 
    128124        case '+': 
     
    312308void parseOperand() 
    313309{ 
    314     printf("!%d : parseOperand()\n",c); 
     310    debug printf("!%d : parseOperand()\n",c); 
    315311    int i; 
    316312    bool neg; 
     
    473469                else 
    474470                    d = 1.0; 
    475                 printf("%.*s\n",std.string.toString(d)); 
     471                debug printf("%.*s\n",std.string.toString(d)); 
    476472            } 
    477473            if(neg) 
     
    930926void parseUnaryExpression() 
    931927{ 
    932     printf("!%d : parseUnaryExpression()\n",c); 
     928    debug printf("!%d : parseUnaryExpression()\n",c); 
    933929    Value[] buffer; 
    934930    bool bFlag = false; 
     
    10151011void parseExpression() 
    10161012{ 
    1017     printf("!%d : parseExpression()\n",c); 
     1013    debug printf("!%d : parseExpression()\n",c); 
    10181014    Value[] buffer; 
    10191015    bool bFlag = false; 
     
    10551051void parseStatement() 
    10561052{ 
    1057     printf("!%d : parseStatement()\n",c); 
     1053    debug printf("!%d : parseStatement()\n",c); 
    10581054    Value[] buffer; 
    10591055    const_string s; 
  • branches/1.9/source/main.d

    r139 r140  
    1616    value; 
    1717 
    18 pragma(lib,"bin\\walnut.lib"); 
     18// pragma(lib,"bin\\walnut.lib"); 
    1919 
    2020enum EXIT { 
  • branches/1.9/source/methods.d

    r139 r140  
    1212import std.uri : decode, decodeComponent, encode, encodeComponent; 
    1313import 
    14     interpreter, 
    1514    structure, 
    1615    TEXT = text, 
  • branches/1.9/source/value.d

    r139 r140  
    1111static import 
    1212    std.date, 
    13     std.regexp, 
    14     std.string; 
     13    std.regexp; 
    1514import 
    1615    methods, 
     
    448447            case TYPE.UNDEFINED:     
    449448            case TYPE.NULL:     assert(0, TEXT._unexpected_token); // throw a TypeError 
    450     /*      case TYPE.FUNCTION: return Function_prototype_constructor(this, Global); 
     449             
     450    /*      BUG: Brainfart at 1:57am, how do you get it to compile ref Value with this? 
     451             
     452            case TYPE.FUNCTION: return Function_prototype_constructor(this, Global); 
    451453            case TYPE.ARRAY:    return Array_prototype_constructor(this, Global); 
    452454            case TYPE.REGEXP:   return RegExp_prototype_constructor(this, Global);