aboutsummaryrefslogtreecommitdiff
path: root/Auxiliary
diff options
context:
space:
mode:
authorIan Hinder <ian.hinder@aei.mpg.de>2012-01-27 19:36:52 -0600
committerIan Hinder <ian.hinder@aei.mpg.de>2012-01-27 19:36:52 -0600
commit82ea63caccde8afba2ee1a8f3b9be897c4ec9d9a (patch)
treef9322765834038ab6222afeb55c7ddc1b75791bd /Auxiliary
parente2d1be275d53521beaf5d04139d49cf1d561a982 (diff)
kranc2.peg: Accept tensors instead of names in variables and temporaries
Diffstat (limited to 'Auxiliary')
-rw-r--r--Auxiliary/Grammars/kranc2.peg4
1 files changed, 2 insertions, 2 deletions
diff --git a/Auxiliary/Grammars/kranc2.peg b/Auxiliary/Grammars/kranc2.peg
index 15c183c..efbc283 100644
--- a/Auxiliary/Grammars/kranc2.peg
+++ b/Auxiliary/Grammars/kranc2.peg
@@ -17,5 +17,5 @@ eqn = ({dtensor}|{tensor}) \= {expr}{-end}
eqns = {eqn}( {eqn})*
thorn = begin[ ]+thorn {name}{-end}( {calculation}| {variables}| {temporaries})* end[ ]+thorn
calculation = begin[ \t]+calculation[ \t]+{uname}{-end} {eqns} end[ \t]+calculation
-variables = begin[ \t]+variables{-end} {name}( end[ \t]+variables\b{brk}| {name})*{-end}
-temporaries = begin[ \t]+temporaries{-end} {name}( end[ \t]+temporaries\b{brk}| {name})*{-end}
+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}