Skip to content

📜 Portable AST Generator for the Scribe interpreted language written in TypeScript

Notifications You must be signed in to change notification settings

AetherInteractiveLtd/mkscribe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MkScribe

MkScribe, a portable TypeScript version of Scribe's AST generator. Efficient, fast and kind of lightweight, made thinking on those who may want to create a Virtual Machine to interpret it.

Basic usage

MkScribe is as simple as it seems, take for example the next code.

import { MkScribe } from "aethergames/mkscribe";

/**
 * Will return the next value:
 *
 * [
 *  {
 *      name: {...},
 *      identifier: {...},
 *      value: ...,
 *      type: StoreStatement,
 *  },
 *  ...
 * ]
 */
MkScribe.build(`
store id IDENTIFIER "Hello!"

echo id
`);

From there, you decide how to interpret it.

About

📜 Portable AST Generator for the Scribe interpreted language written in TypeScript

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published