diff options
author | Ian Hinder <ian.hinder@aei.mpg.de> | 2012-01-29 23:46:44 -0600 |
---|---|---|
committer | Ian Hinder <ian.hinder@aei.mpg.de> | 2012-01-29 23:52:42 -0600 |
commit | 236a0028ce197db03d71f17bc9e4a01306686c9e (patch) | |
tree | 806075cc193a0951e88a094e4135f829ba68340b /Auxiliary | |
parent | 7c967ee25f2a2fb814dd07acccf38ecccd052c6d (diff) |
Add options and features to the script language
Diffstat (limited to 'Auxiliary')
-rw-r--r-- | Auxiliary/Grammars/kranc2.peg | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Auxiliary/Grammars/kranc2.peg b/Auxiliary/Grammars/kranc2.peg index 35c9ece..3cbe0c1 100644 --- a/Auxiliary/Grammars/kranc2.peg +++ b/Auxiliary/Grammars/kranc2.peg @@ -16,7 +16,12 @@ expr = {mul}( {addop} {mul})* eqn = ({dtensor}|{tensor}) \= {expr}{-end} eqns = {eqn}( {eqn})* schedule = scheduled[ \t]+at[ \t]{uname} -thorn = begin[ ]+thorn {name}{-end}( {calculation}| {variables}| {temporaries})* end[ ]+thorn +thorn = begin[ ]+thorn {name}{-end}( {calculation}| {variables}| {temporaries}| {option})* end[ ]+thorn calculation = begin[ \t]+calculation[ \t]+{uname}[ \t]+{schedule}{-end} {eqns} end[ \t]+calculation variables = begin[ \t]+variables{-end} {tensor}( end[ \t]+variables\b{brk}| {tensor})*{-end} temporaries = begin[ \t]+temporaries{-end} {tensor}( end[ \t]+temporaries\b{brk}| {tensor})*{-end} +option = {inherit}|{use}|{disable} +inherit = inherit[ \t]+({uname}[ \t]*)+{-end} +feature = loopcontrol|vectors|opencl|jacobian|cse +use = use[ \t]+({feature}[ \t]*)+ +disable = disable[ \t]+({feature}[ \t]*)+ |