Skip to content

Commit

Permalink
allow integer values as indices
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenrbrandt committed Feb 6, 2012
1 parent 412670e commit 1e4cc8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Auxiliary/Grammars/kranc2.peg
Expand Up @@ -4,7 +4,7 @@ end = ([ \t]+|#.*)*\r*\n
name = [A-Za-z][A-Za-z0-9]*
uname = [A-Za-z][A-Za-z0-9_]*
indices = ([_^]({index_symbol}|\({index_expr}(,{index_expr})*\))+)*
index_symbol = [a-zA-Z]'*
index_symbol = [a-zA-Z]'*|[0-9]
index_expr = {index_symbol}([+-]{int}|)
tensor = {name}{indices}
dtensor = D[a-z0-9]*{indices}? {tensor}
Expand Down

0 comments on commit 1e4cc8e

Please sign in to comment.