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

2f184b8 Β· Jun 26, 2023

History

55 Commits
Jun 26, 2023
Feb 25, 2023
Feb 25, 2023
Jun 26, 2023
Jan 14, 2023
Feb 7, 2023
Jan 14, 2023
Feb 26, 2023
Feb 25, 2023
Feb 27, 2023
Jun 26, 2023
Jan 14, 2023

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.