2.3.0 • Published 3 months ago

@clyde-lang/parser v2.3.0

Weekly downloads
-
License
MIT
Repository
-
Last release
3 months ago

Clyde Parser

npm version

Parser for Clyde dialogue language.

import { parse } from '@clyde-lang/parser';

const result = parse(`

Hagrid: Yer a wizard, Harry!
Harry: I'm a what?

`);
// result
{
    type: 'document',
    content: [{
      type: 'content',
      content: [
        { type: 'line', value: 'Yer a wizard, Harry!', speaker: 'Hagrid' },
        { type: 'line', value: "I'm a what?", speaker: 'Harry' },
        { type: 'line', value: 'this has $everything:', id: 'id_on_first_line', tags: [ 'and_tags' ] },
      ]
    }],
    blocks: []
}

Instalation

npm install @clyde-lang/parser

# or

yarn add @clyde-lang/parser
2.3.0

3 months ago

2.2.0

2 years ago

2.1.2

2 years ago

2.1.1

2 years ago

2.0.2

2 years ago

2.1.0

2 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.0.0

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago