1
0
mirror of https://github.com/emkay/parser-6502.git synced 2024-12-22 06:29:27 +00:00
parser-6502/parsers/label.js

16 lines
291 B
JavaScript
Raw Normal View History

2016-10-02 21:54:14 +00:00
const mona = require('mona')
function label () {
return mona.sequence((s) => {
const label = s(mona.text(mona.alphanum()))
const end = s(mona.string(':'))
2016-10-07 17:45:55 +00:00
// const nl = s(mona.eol())
2016-10-02 21:54:14 +00:00
return mona.value({
label: `${label}${end}`
})
})
}
module.exports = label