1.0.3 • Published 8 years ago

ss-parser v1.0.3

Weekly downloads
101
License
MIT
Repository
github
Last release
8 years ago

Build Status Coverage Status Code Climate

ss-parser

SuperScript parser is the interface for reading *.ss files and creating a internal representation for the SuperScript dialogue engine.

More information can be found at superscriptjs.com

API

  • parseDirectory(path, options, callback)

Takes a directory path and parses all the *.ss files in the directory, creating a JSON structure which is passed into callback as callback(err, results). The options parameter is an object that can accept a factSystem for use in trigger and reply expansion, and a cache to skip previously parsed files in a directory.

  • parseFile(path, factSystem, callback)

Like loadDirectory, but parses a single *.ss file.

  • parseContents(path, factSystem, callback)

Like parseFile, but parses a string (i.e. the contents of a single file).

  • normalizeTrigger(trigger, factSystem, callback)

Takes a trigger string (for example, 'I like and ~1, but not cats|dogs.') and generates the regex for the trigger, which is passed into callback as callback(err, cleanedTrigger).

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

9 years ago

1.0.0-alpha22

9 years ago

1.0.0-alpha21

9 years ago

1.0.0-alpha20

9 years ago

1.0.0-alpha19

9 years ago

1.0.0-alpha18

9 years ago

1.0.0-alpha17

9 years ago

1.0.0-alpha16

9 years ago

1.0.0-alpha15

9 years ago

1.0.0-alpha14

9 years ago

1.0.0-alpha13

9 years ago

1.0.0-alpha12

9 years ago

1.0.0-alpha11

9 years ago

1.0.0-alpha10

9 years ago

1.0.0-alpha9

9 years ago

1.0.0-alpha8

9 years ago

1.0.0-alpha7

9 years ago

1.0.0-alpha6

9 years ago

1.0.0-alpha4

9 years ago

1.0.0-alpha2

9 years ago

1.0.0-alpha1

9 years ago

0.5.0

9 years ago

0.4.0

9 years ago

0.3.0

9 years ago

0.2.1

10 years ago

0.2.0

10 years ago

0.1.9

10 years ago

0.1.8

10 years ago

0.1.7

10 years ago

0.1.6

10 years ago

0.1.5

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago