1.2.5 • Published 1 year ago

dvm-utils v1.2.5

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

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

Getting Started

This package is written in Typescript and can be used in any Node or browser app.

Prerequisites

  • npm or yarn

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

1.2.0

1 year ago

1.2.4-a

1 year ago

1.2.5

1 year ago

1.2.4

1 year ago

1.2.3

1 year ago

1.2.2

1 year ago

1.2.1

1 year ago

1.1.0

1 year ago

1.0.1

2 years ago

1.0.0

2 years ago