mirror of https://github.com/emkay/parser-6502
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
4 years ago | |
---|---|---|
example | 7 years ago | |
parsers | 7 years ago | |
test | 7 years ago | |
.gitignore | 7 years ago | |
.travis.yml | 4 years ago | |
CHANGELOG.md | 4 years ago | |
CODE_OF_CONDUCT.md | 6 years ago | |
CONTRIBUTING.md | 6 years ago | |
LICENSE | 7 years ago | |
README.md | 6 years ago | |
index.js | 7 years ago | |
package-lock.json | 4 years ago | |
package.json | 4 years ago |
README.md
parser-6502
This is a parser written in javascript that will parse assembler written for the 6502 8-bit microprocessor.
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