Move nearley_utils into lib

It doesn't actually use anything that requires it to live in the
background script, as far as I can tell.
This commit is contained in:
Saul Reynolds-Haertle 2019-04-27 23:19:22 -07:00
parent a15af91be6
commit 53b1106b14
3 changed files with 2 additions and 2 deletions

View file

@ -57,7 +57,6 @@ Here's an example: you're writing the [`native()`](https://github.com/tridactyl/
- config_rc.ts: Functions related to loading and executing the tridactylrc. - config_rc.ts: Functions related to loading and executing the tridactylrc.
- controller_background.ts: Parses and executes ex commands. - controller_background.ts: Parses and executes ex commands.
- download_background.ts: Utility functions related to downloading that have to live in the background because downloading APIs aren't available to other processes. - download_background.ts: Utility functions related to downloading that have to live in the background because downloading APIs aren't available to other processes.
- nearley_utils.ts: Remnant of Tridactyl's previous architecture, where keys were handled in the background script.
### src/content/ ### src/content/
@ -91,6 +90,7 @@ Here's an example: you're writing the [`native()`](https://github.com/tridactyl/
- text_to_speech.ts: Various wrappers around Firefox's TTS APIs. - text_to_speech.ts: Various wrappers around Firefox's TTS APIs.
- url_util.ts: Url incrementation, query-extraction, interpolation. - url_util.ts: Url incrementation, query-extraction, interpolation.
- webext.ts: Wrappers around Firefox's APIs (activeTab(), ownTab()...). - webext.ts: Wrappers around Firefox's APIs (activeTab(), ownTab()...).
- nearley_utils.ts: Remnant of Tridactyl's previous architecture, where keys were handled in the background script.
### src/ ### src/

View file

@ -22,7 +22,7 @@
/** */ /** */
import { find, filter, izip } from "@src/lib/itertools" import { find, filter, izip } from "@src/lib/itertools"
import { Parser } from "@src/background/nearley_utils" import { Parser } from "@src/lib/nearley_utils"
import * as bracketexpr_grammar from "@src/grammars/.bracketexpr.generated" import * as bracketexpr_grammar from "@src/grammars/.bracketexpr.generated"
const bracketexpr_parser = new Parser(bracketexpr_grammar) const bracketexpr_parser = new Parser(bracketexpr_grammar)