Wiki

Changes between Version 13 and Version 14 of AllOfCobraInOnePage

Show
Ignore:
Timestamp:
01/10/14 06:37:06 (11 years ago)
Author:
kobi7
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AllOfCobraInOnePage

    v13 v14  
    3131 #/ 
    3232}}} 
    33 {{{ 
     33 
    3434basic structure: 
    3535very top level keywords are the optional "namespace" and "use" 
     
    4444 
    4545examples: 
     46 
    4647{{{ 
    4748#!cobra 
     
    6869 
    6970 
    70 valid keywords inside a method (def): 
    71 you can have "trace, assert" wherever you want inside a method 
    7271very useful for debugging are 'trace' and 'assert' 
    7372}}} 
    7473{{{ 
    7574#!cobra 
     75    # trace example 
    7676    def linear(a as number, x as number, b as number) as number 
    7777        trace a,x,b 
     
    8181 
    8282}}} 
    83 {{{ 
     83 
    8484assert accepts a boolean, with one expression per line. 
    85 example: 
    86 }}} 
     85example: ... 
     86 
    8787 
    8888