tree-sitter-elixir/test/corpus/term/integer.txt

66 lines
828 B
Plaintext

=====================================
decimal
=====================================
1234567890
-1234567890
1_234_567_890
019
---
(source
(integer)
(unary_operator
(integer))
(integer)
(integer))
=====================================
binary
=====================================
0b0101011
-0b0101011
0b0_10_10_11
---
(source
(integer)
(unary_operator
(integer))
(integer))
=====================================
octal
=====================================
0o1234567
-0o1234567
0o1_23_45_67
---
(source
(integer)
(unary_operator
(integer))
(integer))
=====================================
hexadecimal
=====================================
0x123456789abcdefABCDEF
-0x123456789abcdefABCDEF
0x123456789_abcdef_ABCDEF
---
(source
(integer)
(unary_operator
(integer))
(integer))