diff options
author | Ian Hinder <ian.hinder@aei.mpg.de> | 2012-01-27 19:36:52 -0600 |
---|---|---|
committer | Ian Hinder <ian.hinder@aei.mpg.de> | 2012-01-27 19:36:52 -0600 |
commit | 82ea63caccde8afba2ee1a8f3b9be897c4ec9d9a (patch) | |
tree | f9322765834038ab6222afeb55c7ddc1b75791bd /Auxiliary | |
parent | e2d1be275d53521beaf5d04139d49cf1d561a982 (diff) |
kranc2.peg: Accept tensors instead of names in variables and temporaries
Diffstat (limited to 'Auxiliary')
-rw-r--r-- | Auxiliary/Grammars/kranc2.peg | 4 |
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} |