Skip to content

Commit

Permalink
KrancScript.m: Handle grammar change to schedule
Browse files Browse the repository at this point in the history
  • Loading branch information
ianhinder committed Feb 7, 2012
1 parent 01a4164 commit dc378cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tools/CodeGen/KrancScript.m
Expand Up @@ -85,8 +85,8 @@
{name,eqs,joinWord},
name = Cases[calc, "uname"[n_]:>n][[1]];
eqs = Cases[calc, "eqns"[es___]:>{es}][[1]];
schedule = Cases[calc, "schedule"["uname"[s_]]:>s][[1]];

schedule = Cases[calc, "schedule"[___,"uname"[s_],___]:>s][[1]];
joinWord = If[StringMatchQ[schedule,"initial",IgnoreCase->True] ||
StringMatchQ[schedule,"analysis",IgnoreCase->True],
"at","in"];
Expand Down

0 comments on commit dc378cf

Please sign in to comment.