dvm-utils
v1.2.5
Published
<!-- Improved compatibility of back to top link: See: https://github.com/othneildrew/Best-README-Template/pull/73 --> <a name="readme-top"></a> <!-- *** Thanks for checking out the Best-README-Template. If you have a suggestion *** that would make this be
Downloads
5
Readme
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
- [x] Parsing DVM-BASIC code
- [x] 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