98 lines
810 B
Text
98 lines
810 B
Text
nil
|
|
true
|
|
false
|
|
|
|
1
|
|
|
|
1_i8
|
|
1_i16
|
|
1_i32
|
|
1_i64
|
|
1_i128
|
|
|
|
1_u8
|
|
1_u16
|
|
1_u32
|
|
1_u64
|
|
|
|
+10
|
|
-20
|
|
|
|
2147483648
|
|
9223372036854775808
|
|
|
|
1_000_000
|
|
|
|
0b1101
|
|
|
|
0o123
|
|
|
|
0xFE012D
|
|
0xfe012d
|
|
|
|
1_f64
|
|
1.0
|
|
1.0_f32
|
|
1_f32
|
|
|
|
1e10
|
|
1e10_f64
|
|
1.5e10
|
|
1.5e-7
|
|
|
|
+1.3
|
|
-0.5
|
|
|
|
1_000_000.111_111
|
|
1_000_000.111_111e12
|
|
|
|
'c'
|
|
'\\'
|
|
'\u{ABCD}'
|
|
|
|
"string"
|
|
"\u{48 45 4C 4C 4F}"
|
|
"interpolated #{string}"
|
|
"interpolated #{"string"}"
|
|
%(string)
|
|
%q(string)
|
|
%Q(string)
|
|
%(hello ("world"))
|
|
%[hello ["world"]]
|
|
%{hello {"world"}}
|
|
%<hello <"world">>
|
|
%|hello "world"|
|
|
"hello
|
|
world"
|
|
"hello \
|
|
world, \
|
|
no newlines"
|
|
<<-STRING
|
|
Hello world
|
|
STRING
|
|
|
|
<<-'HERE'
|
|
hello \n
|
|
HERE
|
|
|
|
:unquoted_symbol
|
|
:"quoted symbol"
|
|
:question?
|
|
:exclamation!
|
|
:+
|
|
|
|
%i(foo(bar) baz)
|
|
%w(one two three)
|
|
|
|
/foo|bar/
|
|
/h(e+)llo/
|
|
/\d+/
|
|
/あ/
|
|
|
|
%r((/))
|
|
%r[[/]]
|
|
%r{{/}}
|
|
%r<</>>
|
|
%r|/|
|
|
|
|
`echo foo > foo.txt`
|