1.2.5 • Published 1 year ago
dvm-utils v1.2.5
About The Project
This tool helps typescript developpers parse and generate DVM-BASIC code. DVM-BASIC is the language used by the Dero Virtual Machine on the DERO blockchain.
Built With
(website)
Getting Started
This package is written in Typescript and can be used in any Node or browser app.
Prerequisites
npm
oryarn
Installation
- Install package
# with NPM npm install dvm-utils
# with yarn yarn add dvm-utils
Usage
- Parse a DVM-BASIC program :
import { parse } from 'dvm-utils'
import { Program } from 'dvm-utils/src/types/program'
const code: string = `
Function Initialize() Uint64
10 RETURN 0
End Function
`;
const program: Program = parse(code);
console.log(program)
WIP: build a program and generate code. Check out src/tests folders for undocumented examples
Roadmap
- Parsing DVM-BASIC code
- Program building utilities
- Generate code from a Program
See the open issues for a full list of proposed features (and known issues).
Contact
Project Link: https://github.com/DaBisounours/dvm-utils