rfc:docblockparser

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
rfc:docblockparser [2010/09/16 20:52] – Initial RFC Creation cfultonrfc:docblockparser [2011/04/06 10:59] – external edit 127.0.0.1
Line 57: Line 57:
  
 <code> <code>
-docblock := "\/**" , [whitespace] , [short_description] , [long_description] , [tag , { tag | ignored }*] , { emptyline }* , linebreak , "*/" ;+docblock          := "/**" , [whitespace] , [short_description] , [long_description] , [tag , { tag | ignored }*] , { emptyline }* , linebreak , "*/" ;
 short_description := line , { emptyline }+ ; short_description := line , { emptyline }+ ;
-long_description := line , { line | emptyline }* ; +long_description  := line , { line | emptyline }* ; 
-line := [space] , "* " , [space] , character-"@" , string , [space] , linebreak ; +line              := [space] , "* " , [space] , character-"@" , string , [space] , linebreak ; 
-emptyline := [space] , "*" , [space] , linebreak ; +emptyline         := [space] , "*" , [space] , linebreak ; 
-tag := [space] , "* " , "@" , tagname , space , { string | string , linebreak }* , linebreak ; +tag               := [space] , "* " , "@" , tagname , space , { string | string , linebreak }* , linebreak ; 
-ignored := emptyline , { line | emptyline }+ ; +ignored           := emptyline , { line | emptyline }+ ; 
-string := { character } ; +string            := { character }
-tagname := { character - " " } ; +tagname           := { character - " " }
-space := " " | "\t"+space             := " " | "\t"
-linebreak := "\n" | "\r" | "\r\n"+linebreak         := "\n" | "\r" | "\r\n"
-character := ? any ASCII character with code >= 32 and <= 126 ? ;+character         := ? any ASCII character with code >= 32 and <= 126 ? ;
 </code> </code>
  
Line 133: Line 133:
     string(0) ""     string(0) ""
     ["tag3"]=>     ["tag3"]=>
-    array(4) { +    string(53) "this is some pretty-indented multiline text for tag3"
-      [0]=> +
-      string(12) "this is some+
-      [1]=> +
-      string(15) "pretty-indented+
-      [2]=> +
-      string(14) "multiline text+
-      [3]=> +
-      string(8) "for tag3" +
-    }+
     ["tag4"]=>     ["tag4"]=>
-    array(4) { +    string(58) "this is some non-pretty-indented multiline text for tag 4"
-      [0]=> +
-      string(12) "this is some+
-      [1]=> +
-      string(19) "non-pretty-indented+
-      [2]=> +
-      string(14) "multiline text+
-      [3]=> +
-      string(9) "for tag 4" +
-    }+
   }   }
 } }
Line 192: Line 174:
      */      */
 } }
 +</code>
  
  
Line 209: Line 192:
  
 None. None.
- 
 ===== Changelog ===== ===== Changelog =====
  
 +2010-09-16 cfulton Initial RFC creation.
rfc/docblockparser.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1