Skip to content

Latest commit

 

History

35 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KeyWrapper

Dependencies

Usage

You must export 'fieldtext'.

API

Parse a field text string

To create a field text tree structure from a string:

try {
    newFieldText = parser.parse(newFieldTextString);
} catch(err) {
    error = err;
}

If the string fails to parse, error will provide the error message provided by Pegjs.

Combine trees

Fieldtext provides the following operators to combine trees:

'AND', 'OR', 'XOR', 'BEFORE', 'AFTER'

For example:

fieldTextTreeOne.AND(fieldTextTreeTwo)

Tests

grunt test

About

Javascript API for parsing fieldtext

Resources

Stars

0 stars

Watchers

16 watching

Forks

Releases

Packages

Used by

Contributors

Languages