Here is a list of definitions for pydsl:

  • ASTTranslator(AST definition, input) -> ASTree

These function/classes are used to archive the DSL workflow:

Lexer -> Parser -> ASTTranslator (Frontend) -> Interpreter/Output/Bytecode (Backend)

Update on 13/7/2012

Here is a more detailed list of abstractions implemented in pydsl:

In a more pythonic way:

  • Distance(grammar definition, input1, input2) -> int Returns the distance between two inputs according to the grammar
  • GetGroup (grammar definition, input, groupname) -> TokenList locates locates a group of elements within the input

Update on 25/8/2012

Here is a more detailed list of abstractions implemented in pydsl

  • First(grammar definition) -> returns a set with every possible starting element