2021-06-08 23:31:40 +02:00
|
|
|
==================
|
|
|
|
|
numeric literal scientific notation 1
|
|
|
|
|
==================
|
|
|
|
|
|
|
|
|
|
pi = 3
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
(config_file
|
|
|
|
|
(body
|
|
|
|
|
(attribute
|
|
|
|
|
(identifier)
|
2021-06-12 22:47:25 +02:00
|
|
|
(expression (expr_term (literal_value (numeric_lit)))))))
|
2021-06-08 23:31:40 +02:00
|
|
|
|
|
|
|
|
==================
|
|
|
|
|
numeric literal scientific notation 2
|
|
|
|
|
==================
|
|
|
|
|
|
|
|
|
|
pi = 3.14
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
(config_file
|
|
|
|
|
(body
|
|
|
|
|
(attribute
|
|
|
|
|
(identifier)
|
2021-06-12 22:47:25 +02:00
|
|
|
(expression (expr_term (literal_value (numeric_lit)))))))
|
2021-06-08 23:31:40 +02:00
|
|
|
|
|
|
|
|
==================
|
|
|
|
|
numeric literal scientific notation 3
|
|
|
|
|
==================
|
|
|
|
|
|
|
|
|
|
big_pi = 3.14e+10
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
(config_file
|
|
|
|
|
(body
|
|
|
|
|
(attribute
|
|
|
|
|
(identifier)
|
2021-06-12 22:47:25 +02:00
|
|
|
(expression (expr_term (literal_value (numeric_lit)))))))
|
2021-06-08 23:31:40 +02:00
|
|
|
|
|
|
|
|
==================
|
|
|
|
|
numeric literal scientific notation 4
|
|
|
|
|
==================
|
|
|
|
|
|
|
|
|
|
big_pi = 3.14E+10
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
(config_file
|
|
|
|
|
(body
|
|
|
|
|
(attribute
|
|
|
|
|
(identifier)
|
2021-06-12 22:47:25 +02:00
|
|
|
(expression (expr_term (literal_value (numeric_lit)))))))
|
2021-06-08 23:31:40 +02:00
|
|
|
|
|
|
|
|
==================
|
|
|
|
|
numeric literal scientific notation 5
|
|
|
|
|
==================
|
|
|
|
|
|
|
|
|
|
small_pi = 3.14e-10
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
(config_file
|
|
|
|
|
(body
|
|
|
|
|
(attribute
|
|
|
|
|
(identifier)
|
2021-06-12 22:47:25 +02:00
|
|
|
(expression (expr_term (literal_value (numeric_lit)))))))
|
2021-06-08 23:31:40 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
==================
|
|
|
|
|
numeric literal scientific notation 6
|
|
|
|
|
==================
|
|
|
|
|
|
|
|
|
|
small_pi = 3.14E-10
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
(config_file
|
|
|
|
|
(body
|
|
|
|
|
(attribute
|
|
|
|
|
(identifier)
|
2021-06-12 22:47:25 +02:00
|
|
|
(expression (expr_term (literal_value (numeric_lit)))))))
|
2021-06-08 23:31:40 +02:00
|
|
|
|
|
|
|
|
==================
|
2021-06-12 22:36:10 +02:00
|
|
|
bool literal true
|
2021-06-08 23:31:40 +02:00
|
|
|
==================
|
|
|
|
|
|
2021-06-12 22:36:10 +02:00
|
|
|
foo = true
|
2021-06-08 23:31:40 +02:00
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
(config_file
|
|
|
|
|
(body
|
|
|
|
|
(attribute
|
|
|
|
|
(identifier)
|
2021-06-12 22:47:25 +02:00
|
|
|
(expression (expr_term (literal_value (bool_lit)))))))
|
2021-06-08 23:31:40 +02:00
|
|
|
|
2021-06-11 23:32:22 +02:00
|
|
|
==================
|
2021-06-12 22:36:10 +02:00
|
|
|
bool literal false
|
2021-06-11 23:32:22 +02:00
|
|
|
==================
|
|
|
|
|
|
2021-06-12 22:36:10 +02:00
|
|
|
foo = false
|
2021-06-11 23:32:22 +02:00
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
(config_file
|
|
|
|
|
(body
|
|
|
|
|
(attribute
|
|
|
|
|
(identifier)
|
2021-06-12 22:47:25 +02:00
|
|
|
(expression (expr_term (literal_value (bool_lit)))))))
|
2021-06-11 23:32:22 +02:00
|
|
|
|
2021-06-08 23:31:40 +02:00
|
|
|
==================
|
2021-06-12 22:36:10 +02:00
|
|
|
null literal
|
2021-06-08 23:31:40 +02:00
|
|
|
==================
|
|
|
|
|
|
2021-06-12 22:36:10 +02:00
|
|
|
foo = null
|
2021-06-08 23:31:40 +02:00
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
(config_file
|
|
|
|
|
(body
|
|
|
|
|
(attribute
|
|
|
|
|
(identifier)
|
2021-06-12 22:47:25 +02:00
|
|
|
(expression (expr_term (literal_value (null_lit)))))))
|
2021-06-08 23:31:40 +02:00
|
|
|
|
2021-06-12 22:47:25 +02:00
|
|
|
|