0.4.0-a • Published 11 years ago

literalizer v0.4.0-a

Weekly downloads
16
License
-
Repository
github
Last release
11 years ago

literalizer

JS tokenizer which ONLY tokenizes complex literals so they can easily be skipped over in other parsing tasks.

The complex literals that will be tokenized are:

  • strings (" or ' delimited)
  • comments (single-line or multi-line)
  • regular expressions
  • ES6 template strings (` delimited)

What will be returned is an array of tokens, which will be one of the above types, or a general token for everything else.

Think of this as a first-pass-tokenizer, which tokenizes the complex literals first, so that you can make a second-pass of tokenization/parsing and be able to target or ignore (aka, skip over) these more troublesome-to-parse constructs.

Usually the contents of these complex literals don't actually need to be parsed, but they often can confuse other parsing by giving false-positives. literalizer helps identify these complex literals so they can either be ignored, or so that you can find specific literals that do need further lexing/parsing.

0.4.0-a

11 years ago

0.3.0-a

11 years ago

0.2.3-b

11 years ago

0.2.3-a

11 years ago

0.2.2-e

11 years ago

0.2.2-d

11 years ago

0.2.2-c

11 years ago

0.2.2-b

11 years ago

0.2.2-a

11 years ago

0.2.1-a

11 years ago

0.2.0-b

11 years ago

0.2.0-a

11 years ago

0.1.1-b

11 years ago

0.1.1-a

11 years ago

0.1.0-a

11 years ago

0.0.9-a

11 years ago

0.0.8-c

11 years ago

0.0.8-b

11 years ago

0.0.8-a

11 years ago

0.0.6-a

11 years ago

0.0.5-a

11 years ago

0.0.4-a

11 years ago

0.0.3-b

11 years ago

0.0.3

11 years ago

0.0.2

11 years ago