Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Kittensx authored Dec 10, 2024
1 parent b7f0d22 commit e2a7a02
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions 03_ Sequence/prompt_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,11 @@
scheduled: "[" [prompt (":" prompt)+] "]" ":" [WHITESPACE] NUMBER [WHITESPACE] //allows use of optional brackets to apply weights to phrases
alternate: "[" prompt ("|" [prompt])+ "]"
alternate1: prompt "|" prompt
grouped: "{" ((NUMBER_Q | prompt | sequence | grouped) (","| "|")?)+ "}"
sequence: prompt "::" (sequence | prompt (","|WHITESPACE)* (";" | "_;"))* "_;" /
grouped: "{" ((prompt | sequence | grouped) (","| "|")?)+ "}"
sequence: prompt "::" (sequence | prompt (","|WHITESPACE)* (";" | "_;"))* "_;"
WHITESPACE: /\s+/
plain: /([^\\\[\]():|_;]|\\.)+/
%import common.SIGNED_NUMBER -> NUMBER // For weights and general numbers
%import common.INT -> NUMBER_Q // For quantities
""")


Expand Down

0 comments on commit e2a7a02

Please sign in to comment.