-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make the lexer accept scientific notation (#1456)
* Make the lexer accept scientific notation * Mention scientific notation on doc/manual/syntax.md
- Loading branch information
Showing
3 changed files
with
15 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# test.type = 'pass' | ||
let {check, ..} = import "../lib/assert.ncl" in | ||
|
||
[ | ||
5 + 5 == 10, | ||
5 * 5 == 25, | ||
1e6 == 1000000, | ||
1e+3 / 2e-3 == 0.5e6, | ||
] | ||
|> check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters