镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content
This repository was archived by the owner on Dec 11, 2024. It is now read-only.
cli-kitPublic archive

About

Compiler for command line interfaces

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

121 Commits

Folders and files

Repository files navigation

Table of Contents

Compiler

Compiler for the command module, a component of the toolkit.

Compiles markdown program definitions to javascript.

Install

npm i cli-compiler

Test

npm test

Usage

The compiler executes the following phases:

  1. Create or initialize a Program instance or subclass (create).
  2. Load and execute library modules (libs).
  3. Gather source files to merge with parsed program data (sources).
  4. Load and concatenate markdown input files (cat).
  5. Parse markdown document to tokens (parse).
  6. Render markdown tokens into program definition (render).
  7. Replace variables in the program strings (replace).
  8. Transform the program definition to a module (transform).
  9. Write the transformed javascript module to a file (write).
  10. Print the javascript document (print).

License

Everything is MIT. Read the license if you feel inclined.

Generated by mdp(1).

About

Compiler for command line interfaces

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages