Beispiel #1
0
 def words():
     return _(r"[^\n]+")
Beispiel #2
0
 def requirement():
     return requirement_heading, version, ZeroOrMore(
         [priority, type, group,
          uid]), Optional(requirement_description), _(r"\n?")
Beispiel #3
0
 def heading():
     return [(_(r"\s*#+\s+"), heading_name, _(r"\n?")),
             (heading_name, _(r"\n?[-=]+\n?"))]
Beispiel #4
0
 def priority():
     return _(r"\s*priority:\s*"), word
Beispiel #5
0
 def group():
     return _(r"\s*group:\s*"), word
Beispiel #6
0
 def requirement_heading():
     return [(_(r"\s?\s?\s?#+\s+"), requirement_name, _(r"\n?")),
             (requirement_name, _(r"[-=]+\n?"))]
Beispiel #7
0
 def word():
     return _(r"[^\s]+")
Beispiel #8
0
 def requirement_uid():
     return _(r"[ \t]*uid:[ \t]*"), word
Beispiel #9
0
 def specification_name():
     return _(r"(QA-)?SRS[^\n]+")
Beispiel #10
0
 def requirement_type():
     return _(r"[ \t]*type:[ \t]*"), word
Beispiel #11
0
 def requirement_group():
     return _(r"[ \t]*group:[ \t]*"), word
Beispiel #12
0
 def requirement_priority():
     return _(r"[ \t]*priority:[ \t]*"), word
Beispiel #13
0
 def requirement_version():
     return _(r"[ \t]*version:[ \t]*"), word
Beispiel #14
0
 def requirement_heading():
     return _(r"#+[ \t]+"), requirement_name, _(r"\n")
Beispiel #15
0
 def specification_approval_other():
     return _(r"\*?\*?[^\*\n]+:\*?\*?[ \t]*"), words, _(r"\n")
Beispiel #16
0
 def specification_heading():
     return _(r"#[ \t]+"), specification_name, _(r"\n")
Beispiel #17
0
 def specification():
     return specification_heading, ZeroOrMore(inline_heading), ZeroOrMore([
         specification_author, specification_date, specification_version,
         specification_other, specification_approval, empty_line,
         _(r"[ \t]*[^\*#\n][^\n]*\n")
     ]), [toc_heading, heading]
Beispiel #18
0
 def specification_author():
     return _(r"\*?\*?[Aa]uthor:\*?\*?[ \t]*"), words, _(r"\n")
Beispiel #19
0
 def requirement_name():
     return _(r"RQ\.[^\n]+")
Beispiel #20
0
 def specification_approval_heading():
     return _(r"#+[ \t]+"), _(r"Approval"), _(r"[ \t]*\n")
Beispiel #21
0
 def version():
     return _(r"\s*version:\s*"), word
Beispiel #22
0
 def specification_approval_status():
     return _(r"\*?\*?[Ss]tatus:\*?\*?[ \t]*"), words, _(r"\n")
Beispiel #23
0
 def type():
     return _(r"\s*type:\s*"), word
Beispiel #24
0
 def specification_approval_version():
     return _(r"\*?\*?[Vv]ersion:\*?\*?[ \t]*"), words, _(r"\n")
Beispiel #25
0
 def uid():
     return _(r"\s*uid:\s*"), word
Beispiel #26
0
 def specification_approval_by():
     return _(r"\*?\*?[Aa]pproved by:\*?\*?[ \t]*"), words, _(r"\n")
Beispiel #27
0
 def line():
     return _(r"[^\n]*\n")
Beispiel #28
0
 def specification_approval_date():
     return _(r"\*?\*?[Dd]ate:\*?\*?[ \t]*"), words, _(r"\n")
Beispiel #29
0
 def heading_name():
     return _(r"[^\n]+")
Beispiel #30
0
 def toc_heading():
     return _(r"#+[ \t]+"), _(
         r"[Tt][Aa][Bb][Ll][Ee] [Oo][Ff] [Cc][Oo][Nn][Tt][Ee][Nn][Tt][Ss]"
     ), _(r"[ \t]*\n")