Skip to content

Commit

Permalink
decimal part of decimal is not optional :)
Browse files Browse the repository at this point in the history
  • Loading branch information
connolly committed Jan 11, 2010
1 parent 53bbb72 commit 3b70590
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion grammar/notation3.bnf
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@

[26] integer ::= [+-]? [0-9]+
[27] double ::= [+-]? [0-9]+ ("." [0-9]+)? ( [eE] [+-]? [0-9]+)
[28] decimal ::= [+-]? [0-9]+ ("." [0-9]+)?
/* in SPARQL, decimals can have exponents too. Java too, I think. */
[28] decimal ::= [+-]? [0-9]+ ("." [0-9]+)

/* borrowed from SPARQL spec, which excludes newlines and other nastiness */
[29] uriref ::= '<' ([^<>'{}|^`]-[#x01-#x20])* '>'
Expand Down

0 comments on commit 3b70590

Please sign in to comment.