Skip to content

Commit

Permalink
Parse floating point numbers in scientific notation
Browse files Browse the repository at this point in the history
  • Loading branch information
ndantam committed Sep 22, 2019
1 parent 1025fb4 commit 2b1025c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/wavefront/mtl.l
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ END [[:blank:]]*("#".*)?"\n"

DIGIT [[:digit:]]
INT {DIGIT}+
NUMBER "-"?{INT}("."{DIGIT}*)?
NUMBER "-"?{INT}("."{DIGIT}*)?([eds]"-"?{INT})?
BLANKS [[:blank:]]+
MAYBE_BLANKS [[:blank:]]*

Expand Down
2 changes: 1 addition & 1 deletion src/wavefront/wavefront.l
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ END [[:blank:]]*("#".*)?"\n"

DIGIT [[:digit:]]
INT {DIGIT}+
NUMBER "-"?{INT}("."{DIGIT}*)?
NUMBER "-"?{INT}("."{DIGIT}*)?([eds]"-"?{INT})?
BLANKS [[:blank:]]+
MAYBE_BLANKS [[:blank:]]*

Expand Down

0 comments on commit 2b1025c

Please sign in to comment.