ss-parser
The parser interface for SuperScript
Last updated 3 years ago by benhjames .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install ss-parser 
SYNC missed versions from official npm registry.

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).

Current Tags

  • 1.0.0-alpha22                                ...           alpha (4 years ago)
  • 1.0.3                                ...           latest (3 years ago)

39 Versions

  • 1.0.3                                ...           3 years ago
  • 1.0.2                                ...           3 years ago
  • 1.0.1                                ...           3 years ago
  • 1.0.0                                ...           4 years ago
  • 1.0.0-alpha22                                ...           4 years ago
  • 1.0.0-alpha21                                ...           4 years ago
  • 1.0.0-alpha20                                ...           4 years ago
  • 1.0.0-alpha19                                ...           4 years ago
  • 1.0.0-alpha18                                ...           4 years ago
  • 1.0.0-alpha17                                ...           4 years ago
  • 1.0.0-alpha16                                ...           4 years ago
  • 1.0.0-alpha15                                ...           4 years ago
  • 1.0.0-alpha14                                ...           4 years ago
  • 1.0.0-alpha13                                ...           4 years ago
  • 1.0.0-alpha12                                ...           4 years ago
  • 1.0.0-alpha11                                ...           4 years ago
  • 1.0.0-alpha10                                ...           4 years ago
  • 1.0.0-alpha9                                ...           4 years ago
  • 1.0.0-alpha8                                ...           4 years ago
  • 1.0.0-alpha7                                ...           4 years ago
  • 1.0.0-alpha6                                ...           4 years ago
  • 1.0.0-alpha4                                ...           4 years ago
  • 1.0.0-alpha2                                ...           4 years ago
  • 1.0.0-alpha1                                ...           4 years ago
  • 0.5.0                                ...           4 years ago
  • 0.4.0                                ...           4 years ago
  • 0.3.0                                ...           4 years ago
  • 0.2.1                                ...           5 years ago
  • 0.2.0                                ...           5 years ago
  • 0.1.9                                ...           5 years ago
  • 0.1.8                                ...           5 years ago
  • 0.1.7                                ...           5 years ago
  • 0.1.6                                ...           5 years ago
  • 0.1.5                                ...           5 years ago
  • 0.1.4                                ...           5 years ago
  • 0.1.3                                ...           5 years ago
  • 0.1.2                                ...           5 years ago
  • 0.1.1                                ...           5 years ago
  • 0.1.0                                ...           5 years ago
Maintainers (2)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 4
Dependencies (9)
Dev Dependencies (12)

Copyright 2014 - 2016 © taobao.org |