Wiki

Changes between Version 2 and Version 3 of CodeDoc

Show
Ignore:
Timestamp:
11/22/10 19:01:46 (14 years ago)
Author:
todd.a
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CodeDoc

    v2 v3  
    4646tokenization and code generation is concerned. 
    4747{{{ 
     48#!cobra 
    4849numberType = if(.typeProvider, .typeProvider.numberType, DecimalType()) 
    4950# parse literal to same type as numberType 
     
    5657 
    5758{{{ 
     59#!cobra 
    5860def onWHITESPACE_LINE(tok as IToken) as IToken? 
    5961    # Eat these. 
     
    7375described with an inline trailing comment. 
    7476{{{ 
     77#!cobra 
    7578var _didLineContinuation as bool  # only meaningful after an EOL 
    7679}}} 
     
    8689The most common use for this perhaps is to comment out a block of code. 
    8790{{{ 
     91#!cobra 
    8892def startSource(fileName as String, source as String) as Tokenizer 
    8993    /# 
     
    100104You can also comment (out) code within a line with inline '''/#... #/''' 
    101105{{{ 
     106#!cobra 
    102107x = /# -1 * #/ z * y 
    103108# same as x = z * y  
     
    118123Any subsequent text after the tag is ignored. 
    119124{{{ 
     125#!cobra 
    120126# Normally this would warn with a suggestion to remove the trailing () 
    121127callMe()    # .nowarnings.   I like explicit () for this call 
     
    130136Usually this uses a tag '''TODO:''' followed by the notation. 
    131137{{{ 
     138#!cobra 
    132139# TODO: move to CobraCore 
    133140... 
     
    146153e.g 
    147154{{{ 
     155#!cobra 
    148156"""This is a single line docstring.""" 
    149157 
     
    176184=== Grammar === 
    177185{{{ 
     186#!cobra 
    178187    """ TEXT """ 
    179188 
     
    186195 
    187196{{{ 
     197#!cobra 
    188198"""Example module showing docstring positions""" 
    189199