simpleparse.common.comments | index /home/mcfletch/pylive/simpleparse/common/comments.py |
Common comment formats
To process, handle the "comment" production,
(the specific named comment formats are all
expanded productions, so you won't get them
returned for processing).
hash_comment
# to EOL comments
slashslash_comment
// to EOL comments
semicolon_comment
; to EOL comments
slashbang_comment
c_comment
non-nesting /* */ comments
slashbang_nest_comment
c_nest_comment
nesting /* /* */ */ comments
Modules | ||||||
|
Data | ||
_p = <simpleparse.parser.Parser instance> c = {'c_comment': LibraryElement( production = 'slashbang_comm...enerator.Generator instance at 0x2aaaad5dedd0>, ), 'c_nest_comment': LibraryElement( production = 'slashbang_nest...enerator.Generator instance at 0x2aaaad5e7170>, ), 'hash_comment': LibraryElement( production = 'hash_comment',...enerator.Generator instance at 0x2aaaad5d9128>, ), 'semicolon_comment': LibraryElement( production = 'semicolon_comm...enerator.Generator instance at 0x2aaaad5d9128>, ), 'slashbang_comment': LibraryElement( production = 'slashbang_comm...enerator.Generator instance at 0x2aaaad5dedd0>, ), 'slashbang_nest_comment': LibraryElement( production = 'slashbang_nest...enerator.Generator instance at 0x2aaaad5e7170>, ), 'slashslash_comment': LibraryElement( production = 'slashslash_com...enerator.Generator instance at 0x2aaaad5d9128>, )} ccomments = '\n### comments in format /* comment */ with no re..."*/"*\n>slashbang_comment< := \'/*\', comment, \'*/\'\n' eolcomments = "\n### comment formats where the comment goes\n### ..., EOL\n>slashslash_comment< := '//', comment, EOL\n" name = 'slashbang_nest_comment' nccomments = '\n### nestable C comments of form /* comment /* i...comment< := comment_start, comment, comment_stop\n' |