Noiseless Party Machine
Join us to discuss the challenges, solutions and best practices for in-house JavaScript code sharing. Tuesday, 12/17 at 10am PT/1pm ET.Sign up here »

parser-6502

1.0.3 • Public • Published

parser-6502

Greenkeeper badge Parser for 6502 assembler

This is a parser written in javascript that will parse assembler written for the 6502 8-bit microprocessor.

Build Status Standard - JavaScript Style Guide Standard Version

Usage

const fs = require('fs')
const parser = require('parser-6502')
const input = fs.readFileSync('./asm.s', 'utf-8')
const result = parser(input)
 
console.log(result)

API

result = parser(input)

[
  {
    "directive": ".db",
    "args": [
      {
        "binary": "00000001"
      }
    ]
  }
]

Installation

npm i parser-6502

License

MIT

Install

npm i parser-6502

DownloadsWeekly Downloads

7

Version

1.0.3

License

MIT

Unpacked Size

51.7 kB

Total Files

19

Last publish

Collaborators

  • avatar