[ET Trac] [Einstein Toolkit] #2192: schedule.ccl SYNC allows for [timelevels] suffixes
Einstein Toolkit
trac-noreply at einsteintoolkit.org
Wed Nov 7 13:51:43 CST 2018
#2192: schedule.ccl SYNC allows for [timelevels] suffixes
-------------------------+---------------------------------
Reporter: zachetie@… | Owner: Steven R. Brandt
Type: defect | Status: assigned
Priority: unset | Milestone:
Component: Other | Version: development version
Resolution: | Keywords: piraha
-------------------------+---------------------------------
Comment (by Steven R. Brandt):
The following patch to the flesh addresses this:
{{{
diff --git a/src/piraha/pegs/schedule.peg b/src/piraha/pegs/schedule.peg
index e24175c..990289a 100644
--- a/src/piraha/pegs/schedule.peg
+++ b/src/piraha/pegs/schedule.peg
@@ -6,6 +6,7 @@ name = (?i:[a-zA-Z_][a-zA-Z0-9_\-]*\b)
expr = {name}|{num}
# TODO: Should this be a * or a ?
vname = {name}( :: {name})*( \[ {expr} \]|)
+uname = {name}( :: {name})*
quote = "(\\{any}|[^"])*"
ccomment = /\*((?!\*/){-any})*\*/
num = [+\-]?[0-9]+(\.[0-9]+)?
@@ -40,7 +41,7 @@ group = (?i:group)
nogroup =
prepositions = ({preposition} )*
preposition = {par} {pararg}
-sync = (?i:sync) : {vname}( , {vname}|[ \t]{vname})*
+sync = (?i:sync) : {uname}( , {uname}|[ \t]{uname})*
options = (?i:options?) : {vname}( , {vname}|[ \t]{vname})*
storage = (?i:storage) : {vname}( , {vname}|[ \t]{vname})*
triggers = (?i:triggers?) : {vname}( , {vname}|[ \t]{vname})*
}}}
--
Ticket URL: <https://trac.einsteintoolkit.org/ticket/2192#comment:4>
Einstein Toolkit <http://einsteintoolkit.org>
The Einstein Toolkit
More information about the Trac
mailing list