simpleparse.common.comments | index /usr/src/tmp/python3-module-simpleparse-buildroot/usr/lib/python3/site-packages/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 | ||
__file__ = '/usr/src/tmp/python3-module-simpleparse-buildroo...hon3/site-packages/simpleparse/common/comments.py' __name__ = 'simpleparse.common.comments' __package__ = 'simpleparse.common' _p = <simpleparse.parser.Parser object> c = {'c_comment': LibraryElement(value='slashbang_comment',report=...,repeating=False,expanded=False,lookahead=False ), 'c_nest_comment': LibraryElement(value='slashbang_nest_comment',re...,repeating=False,expanded=False,lookahead=False ), 'hash_comment': LibraryElement(value='hash_comment',report=True,...,repeating=False,expanded=False,lookahead=False ), 'semicolon_comment': LibraryElement(value='semicolon_comment',report=...,repeating=False,expanded=False,lookahead=False ), 'slashbang_comment': LibraryElement(value='slashbang_comment',report=...,repeating=False,expanded=False,lookahead=False ), 'slashbang_nest_comment': LibraryElement(value='slashbang_nest_comment',re...,repeating=False,expanded=False,lookahead=False ), 'slashslash_comment': LibraryElement(value='slashslash_comment',report...,repeating=False,expanded=False,lookahead=False )} 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' |