@predictive-text-studio/lexical-model-compiler
TypeScript icon, indicating that this package has built-in type declarations

14.0.0-alpha.0 • Public • Published

Keyman Developer

Eddie's fork:

Install

yarn add @predictive-text-studio/lexical-model-compiler

or

npm install @predictive-text-studio/lexical-model-compiler --save

Usage

Check source/index.ts for more details!

import {compileModelFromLexicalModelSource} from "@predictive-text-studio/lexical-model-compiler";

let javaScriptCode: string = compileModelFromLexicalModelSource({
  format: "trie-1.0",
  source: [{
    name: "<memory>",
    *lines() {
      yield [1, "hello,100"];
    }
  }]
});

console.log(javaScriptCode);

How to build from source

Run build.sh:

./build.sh

How to run the tests

./build.sh -test

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
14.0.0-alpha.00latest

Version History

VersionDownloads (Last 7 Days)Published
14.0.0-alpha.00

Package Sidebar

Install

npm i @predictive-text-studio/lexical-model-compiler

Weekly Downloads

0

Version

14.0.0-alpha.0

License

MIT

Unpacked Size

125 kB

Total Files

73

Last publish

Collaborators

  • eddieantonio