Skip to content

Commit

Permalink
kranc2.peg: Add derivative name to parse tree
Browse files Browse the repository at this point in the history
  • Loading branch information
ianhinder committed Feb 7, 2012
1 parent 79d6ce9 commit 3cc6aee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Auxiliary/Grammars/kranc2.peg
Expand Up @@ -9,7 +9,8 @@ indices = (\_{lower_index}+|\^{upper_index}+)*
index_symbol = [a-zA-Z]'*|[0-9]
index_expr = {index_symbol}([+-]{int}|)
tensor = {name}{indices}
dtensor = D[a-z0-9]*{indices}? {tensor}
dname = D[a-z0-9]*
dtensor = {dname}{indices}? {tensor}
number = -?[0-9]+(\.[0-9]*|)([eEdD][+-]?[0-9]+|)
func = {name} \( ({expr}( , {expr})*|) \)
value = {func}|{dtensor}|-?{tensor}|{number}|-?\( {expr} \)
Expand Down

0 comments on commit 3cc6aee

Please sign in to comment.