rus3 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/lib/rus3/token.rb DELETED
@@ -1,35 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Rus3
4
-
5
- TOKEN_TYPES = [ # :nodoc:
6
- # delimiters
7
- :lparen, # `(`
8
- :rparen, # `)`
9
- :vec_lparen, # `#(`
10
- :bytevec_lparen, # `#u8(`
11
- :quotation, # `'`
12
- :backquote, # "`" (aka quasiquote)
13
- :comma, # `,`
14
- :comma_at, # `,@`
15
- :dot, # `.`
16
- :semicolon, # `;`
17
- :comment_lparen, # `#|`
18
- :comment_rparen, # `|#`
19
- # value types
20
- :identifier, # `foo`
21
- :boolean, # `#f` or `#t` (`#false` or `#true`)
22
- :number, # `123`, `456.789`, `1/2`, `3+4i`
23
- :character, # `#\a`
24
- :string, # `"hoge"`
25
- # operators
26
- :op_proc, # `+`, `-`, ...
27
- # control
28
- :illegal,
29
- ]
30
-
31
- Token = Struct.new(:type, :literal) {
32
- alias :to_s :literal
33
- }
34
-
35
- end