mirror of
https://github.com/emkay/parser-6502.git
synced 2024-12-30 12:31:29 +00:00
16 lines
291 B
JavaScript
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
|