+23
−31
lib/jsduck/esprima_tokenizer.rb
0 → 100644
+77
−0
+32
−28
spec/esprima_tokenizer_spec.rb
0 → 100644
+55
−0
Loading
The former now implements the same API as old Lexer, while the Tokenizer is a singleton class that loads esprima.js just once and provides the tokenizing service. Tokenizer also converts all Esprima tokens to JsDuck::Lexer kind of tokens.