4 authors feat: add interface for token reconstruction (#25)
efb9f07 Feb 11, 2021
feat: add interface for token reconstruction (#25)
* Updating dependencies

* typescript conversion

* style fixes

* adding reconstruction functionality

* exporting reconstruct from index

* Update lib/types/tokens.ts

Co-authored-by: fent <fentbox@gmail.com>

* Update lib/types/tokens.ts

Co-authored-by: fent <fentbox@gmail.com>

* Update lib/tokenizer.ts

Co-authored-by: fent <fentbox@gmail.com>

* Fixing review comments in PR24

* Putting SyntaxError inline to be recognised by typescript compiler

* adding code coverage for reconstruct

* fixing semicolons in reconstruct file and updating [^.] test

* Removing lookbehind (not currently tokenized)

* Add documentation for `reconstruct` and `partialConstruct`

* Fix typo

* Remove unecessary character escaping

* Adding tests for set simplifications

* Fix typo and remove sanitisation comment

* Update README.md

Co-authored-by: fent <fentbox@gmail.com>

* Change partialConstruct to reconstruct

* Remove partialConstruct from readme

* Remove partialConstruct from tests

* Replace other instances of partialConstruct with reconstruct

* Converting partialConstruct to reconstruct in reduceStack

* Adding `module.exports.reconstruct`

Needed to make importing using the syntax shown in the README valid

* revert package-lock.json file

* Update readme file to remove reference to partialConstruct in explanation

* reverting package-lock.json (using version in ret/master)

* fix: make package-lock match main branch

* fix: revert unintended changes to readme

* run lint:fix

* Update test file

* Update reconstruct functionality and refactor the set token writer

* Remove unecessary readme space change

* Rename boolean variables

* Fix (#25 (comment)) and add test cases

* Resolve (#25 (comment)) and add test cases

* Resolve (#25 (comment))

* fix #25 (comment), missing backslash escape

* resolve #25 (comment)

* Update lib/write-set-tokens.ts

Co-authored-by: Charmander <~@charmander.me>

* resolve #25 (comment)

* Update README.md

Co-authored-by: fent <fentbox@gmail.com>

* Update write-set-tokens.ts

* create script to generate set-lookup.ts

* fix: remove error from unlinking nonexistant file

* Revert to using runtime generation of set lookup

* Revert .gitignore file

* Revert tsconfig

* using tsconfig and gitignore from remote rather than origin

Co-authored-by: Jesse Wright <jesse@jesse-hp-laptop.local>
Co-authored-by: fent <fentbox@gmail.com>
Co-authored-by: Charmander <~@charmander.me>
efb9f07