A lightweight Excel-like spreadsheet application. Do what you need, and nothing more.
The application is divided into separate pnpm
packages in the packages/
directory. When running a command, make sure to switch your current working directory into the relevant package.
interpreter
contains the expression parser and compiler for cell contentprism-language-def
contains the language definition for Prism
You'll need to install pnpm
globally:
npm i -g pnpm
After checking out the project, run pnpm install
in the root directory to download all dependencies.
This package uses peggy
to compile a PEG parser into JS, and the file is not checked into source by design. Build the parser using the build-grammar
script:
pnpm build-grammar
This will build the parser in src/grammar/index.js
which is then imported and built into an exported package.
To run the live web page to test out the syntax highlighting, you can run the dev server to test out the language definition:
pnpm dev
You can build the package using pnpm build
.