mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-03 18:29:00 +00:00
30 lines
447 B
Python
30 lines
447 B
Python
## Basic Literals ##
|
|
# Nat Literal
|
|
0, 1, 2, 100_000
|
|
|
|
# Int Literal: Positive numbers cannot be determined during tokenization
|
|
-1, -10, -100_000
|
|
|
|
# Ratio Literal
|
|
0.00, -0.0, .1, 400.
|
|
|
|
# Str Literal
|
|
"", "a", "こんにちは", "\"\\", "\"\'\\\0\r\n\t"
|
|
|
|
# Boolean Litteral
|
|
True, False
|
|
|
|
# None Literal
|
|
None
|
|
|
|
# Ellipsis Literal
|
|
...
|
|
|
|
# Infinite Literal
|
|
Inf, -Inf
|
|
|
|
# Not Implemeted Literal
|
|
NotImplemented
|
|
|
|
# Exponetial Literal
|
|
# 1e-34, 0.4e-10, 2.455+e5
|