programma_grammar.addLexicalReduction(LexicalReduction(("id", "?"), ("id", False, True, True, False), (False, False, True))) programma_grammar.addLexicalReduction(LexicalReduction(("id", "?"), ("id", False, False, False, True))) programma_grammar.parsePhrasalGrammar(GrammarLexer( ''' ''')) programma_categories = [] programma = Language(programma_grammar, programma_categories) # We'd like to get the following: # Generate a conversion procedure from input text to lexable binary. # Generate a lexer # Generate a parser # Generate a full language specification # Generate a full compiler # Generate some valid programs # Roadmap: # 1. Debug the stuff that outputs lexer_grammar.tex # 2. Start building the grammar and attach all the necessary stuff to it. # This is about language design, not necessarily the framework so much. # ... if __name__ == '__main__': programma.getLexicalSpecification().dump()