use transform_values for `TOKENS`

FossilOrigin-Name: ecc9a6364a3e9096050cb7ada97436c9a03514ca50e2ca3d50e19f5ff70a8fd3
private
alpha 2 years ago
parent 7559cd2b8e
commit 6b083fd884

@ -74,7 +74,7 @@ module Lox
>= GREATER_EQUAL >= GREATER_EQUAL
> GREATER > GREATER
/ SLASH / SLASH
].each_slice(2).to_h {|k,v| [k, v.to_sym] } ].each_slice(2).to_h.transform_values(&:to_sym)
TOKENS_RE = Regexp.union(TOKENS.keys) TOKENS_RE = Regexp.union(TOKENS.keys)
KEYWORDS = %w[ KEYWORDS = %w[

Loading…
Cancel
Save