1.0.0 • Published 6 years ago
extensible-parser v1.0.0
String Parser
HTMLParser's extensible string parsing class written in Typescript
Install
npm install stringparser
Usage
import {Parser} from "StringParser"
let stringData = "some stuff"
const parser = new Parser(stringData)
while(parser.hasNext()) {
let char = parser.consume()
console.log(char)
}
Documentation
See the example above or the wiki.
Development
This module was originally developed for the Neanderthal web framework, and is used directly in the HTMLParser library.
Contributions are welcome! However- this library is designed to provide
the most primitive functionality needed for a complete string library. Most new
features should be delegated to a separate library that extends the StringParser
class.
Projects using StringParser
These libraries directly extend the StringParser
class:
- HTMLParser
1.0.0
6 years ago