Changeset 80

Show
Ignore:
Timestamp:
11/08/06 12:39:29 (2 years ago)
Author:
Jan-Klaas Kollhof
Message:

changed def -> publ

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/experimental/jsolait/jsolait.js

    r78 r80  
    906906         
    907907        var tupleAssingnment ='\\s\\[' + grp('.*?')  + '\\]\\s*=' + grp('.+?') + ';'; 
    908          
    909          
     908    
    910909        var allStatments=re(or(blockComment, comment, string("'"), string('"'),  
    911910                                        classStatement, simpleClassStatement, classMethodStatement,  moduleFunctionStatement,  
     
    985984    }; 
    986985     
    987      
    988      
     986 
    989987    mod.run=function(modName, methodName, alertError){ 
    990988        mod.loadModule(modName, function(m, err){ 
  • branches/experimental/test/test.js

    r77 r80  
    33var moduleNames=['testing','core','sets','itertools','codecs','crypto','urllib', 'jsonrpc','xmlrpc']; 
    44 
    5 def log(){ 
     5publ log(){ 
    66    print.apply(null, arguments); 
    77}; 
    88 
    9 def test(logger){ 
     9publ test(logger){ 
    1010         
    1111 
     
    3333}; 
    3434 
    35 def __main__(){ 
     35publ __main__(){ 
    3636    test(mod); 
    3737};     
  • branches/experimental/test/test_codecs.js

    r77 r80  
    44import codecs; 
    55 
    6 def test(logger){ 
     6publ test(logger){ 
    77    logger.log("testing codecs ..."); 
    88    
     
    2222 
    2323 
    24 def __main__(){ 
     24publ __main__(){ 
    2525    test({log:print}) 
    2626}; 
  • branches/experimental/test/test_core.js

    r77 r80  
    33import testing; 
    44 
    5 def test(logger){ 
     5publ test(logger){ 
    66    logger.log("testing core String methods ..."); 
    77     
     
    8282}; 
    8383 
    84 def __main__(){ 
     84publ __main__(){ 
    8585    test({log:print}) 
    8686}; 
  • branches/experimental/test/test_crypto.js

    r77 r80  
    55import codecs; 
    66 
    7 def test(logger){ 
     7publ test(logger){ 
    88     
    99    logger.log("testing crypto ..."); 
     
    2626}; 
    2727 
    28 def __main__(){ 
     28publ __main__(){ 
    2929    test({log:print}) 
    3030}; 
  • branches/experimental/test/test_itertools.js

    r78 r80  
    44import itertools:*; 
    55 
    6 def test(logger){ 
     6publ test(logger){ 
    77    logger.log("testing itertools module ..."); 
    88     
     
    4848    testing.assertEquals('iter(a) with stop during iteration.', s, "0,1,2,3,4"); 
    4949     
    50     var s = '' 
     50    var s = ''; 
    5151    iter(item in a){ 
    5252        if(item == 4){ 
     
    8282 
    8383 
    84 def profile(){ 
     84publ profile(){ 
    8585    var task=function(){ 
    8686        var s=''; 
     
    187187 
    188188}; 
    189 def __main__(){ 
     189publ __main__(){ 
    190190    test({log:print}) 
    191191 
  • branches/experimental/test/test_jsonrpc.js

    r77 r80  
    44import jsonrpc; 
    55 
    6 def test(logger){ 
     6publ test(logger){ 
    77     
    88    logger.log("testing jsonrpc ..."); 
     
    1616}; 
    1717 
    18 def __main__(){ 
     18publ __main__(){ 
    1919    test({log:print}); 
    2020}; 
  • branches/experimental/test/test_sets.js

    r77 r80  
    33import sets; 
    44 
    5 def test(logger){ 
     5publ test(logger){ 
    66    var s1=new sets.Set("0123456".split("")); 
    77    var s2=new sets.Set("3456789".split("")); 
     
    3333}; 
    3434 
    35 def __main__(){ 
     35publ __main__(){ 
    3636    test({log:print}) 
    3737}; 
  • branches/experimental/test/test_strings.js

    r77 r80  
    33import strings; 
    44 
    5 def test( logger){ 
     5publ test( logger){ 
    66    
    77    logger.log("testing strings"); 
     
    1919}; 
    2020 
    21 def __main__(){ 
     21publ __main__(){ 
    2222    test({log:print}) 
    2323}; 
  • branches/experimental/test/test_testing.js

    r77 r80  
    33import testing; 
    44 
    5 def test( logger){ 
     5publ test( logger){ 
    66    logger.log("testing testing ..."); 
    77     
     
    5858}; 
    5959 
    60 def __main__(){ 
     60publ __main__(){ 
    6161    test({log:print}) 
    6262};     
  • branches/experimental/test/test_urllib.js

    r77 r80  
    44import urllib; 
    55 
    6 def test(logger){ 
     6publ test(logger){ 
    77    logger.log("testing urllib ..."); 
    88    testing.assertTrue("urllib usable", urllib.isUsable()); 
     
    1515     
    1616}; 
    17 def __main__(){ 
     17publ __main__(){ 
    1818    test({log:print}); 
    1919}; 
  • branches/experimental/test/test_xmlrpc.js

    r77 r80  
    44import xmlrpc; 
    55 
    6 def test(logger){ 
     6publ test(logger){ 
    77     
    88    logger.log("testing xmlrpc ..."); 
     
    1616}; 
    1717 
    18 def __main__(){ 
     18publ __main__(){ 
    1919    test({log:print}); 
    2020};