aboutsummaryrefslogtreecommitdiff
path: root/Auxiliary
diff options
context:
space:
mode:
authorIan Hinder <ian.hinder@aei.mpg.de>2012-01-29 23:57:15 -0600
committerIan Hinder <ian.hinder@aei.mpg.de>2012-01-29 23:57:15 -0600
commitad9f846549d84fa82af5dabd6e288f3641c54a54 (patch)
treea57f50ad0fb33fc11bbca20f85a3a898603772dd /Auxiliary
parent821a96dcd9f29cb4ed9fd3953a9fe6713d56e1c5 (diff)
Add Implementation to script language
Diffstat (limited to 'Auxiliary')
-rw-r--r--Auxiliary/Grammars/kranc2.peg3
1 files changed, 2 insertions, 1 deletions
diff --git a/Auxiliary/Grammars/kranc2.peg b/Auxiliary/Grammars/kranc2.peg
index 3cbe0c1..fc6ce10 100644
--- a/Auxiliary/Grammars/kranc2.peg
+++ b/Auxiliary/Grammars/kranc2.peg
@@ -20,8 +20,9 @@ thorn = begin[ ]+thorn {name}{-end}( {calculation}| {variables}| {temporaries}|
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}
+option = {inherit}|{use}|{disable}|{implement}
inherit = inherit[ \t]+({uname}[ \t]*)+{-end}
feature = loopcontrol|vectors|opencl|jacobian|cse
use = use[ \t]+({feature}[ \t]*)+
disable = disable[ \t]+({feature}[ \t]*)+
+implement = implement[ \t]+{uname}{-end}