1
0
mirror of https://github.com/emkay/parser-6502.git synced 2024-06-03 00:29:49 +00:00
parser-6502/parsers/label.js
Michael Matuzak cb0e34d1e3 bleh
2016-10-07 10:45:55 -07:00

16 lines
291 B
JavaScript

const mona = require('mona')
function label () {
return mona.sequence((s) => {
const label = s(mona.text(mona.alphanum()))
const end = s(mona.string(':'))
// const nl = s(mona.eol())
return mona.value({
label: `${label}${end}`
})
})
}
module.exports = label