Permalink
Browse files

formatting

  • Loading branch information...
1 parent b1c38ee commit 7d38f8e154328d8b03c7dcc56ac2f0db5bfd4343 @nesaro committed May 6, 2013
Showing with 4 additions and 0 deletions.
  1. +4 −0 README
View
4 README
@@ -15,21 +15,25 @@ supported formats:
* pydsl BNF format
* mongo database query dictionaries
* python ply module (only check support)
+
properties:
* enum(gd): yields a list of accepted words
* first(gd): yields a list of the first accepted subword/char
* minsize(gd): length of the smaller accepted word
* maxsize(gd): length of the biggest accepted word
* alphabet(gd): returns the alphabet used by this gd
+
functions:
* validate(gd, input): test the input string against the spec. In case of failure, it returns a list of errors
ALPHABETS
---------
Alphabets are a set of grammar definitions that are recognized using a regular grammar.
+
properties:
* grammar_list(ad): return the list of allowed grammars for this alphabet
+
functions:
* lexer(ad, input): Generates a tokenlist from a string (it is a special case of translate)

0 comments on commit 7d38f8e

Please sign in to comment.