Commits

Author Commit Message Labels Comments Date
Phil Hargett
Added ignore file
Phil Hargett
Setting initial license.
Phil Hargett
Small performance improvements
Phil Hargett
Now using a grammar-specific augmented start rule, since we otherwise would be limited to 1 grammar per package
Phil Hargett
Initial implementation of captures
Phil Hargett
Some cleanup to encapsulate parser contexts better
Phil Hargett
Now the lexer also returns AST nodes on the stack, just like the parser.
Phil Hargett
Okay, now we create abstract syntax nodes for rules in a grammar, although we do not yet do that for tokens
Phil Hargett
Minor improvements to reduction; fixed bug where terms where reduced in reverse order.
Phil Hargett
Initial support for different reduction actions
Phil Hargett
Added placeholder for options in rule definitions within grammar specifications
Phil Hargett
Crap--forgot to add the file with types
Phil Hargett
Reorganized by defining all classes as early as possible.
Phil Hargett
Added defparser helper to define grammar & lexer at once (delegates to defgrammar and lexer), and added source-text convenience accessors on parser & lexer. For example, after defining a parser, can use source-text to define what text to parse.
Phil Hargett
Miscellaneous cleanups; added expected-next-symbols to parser
Phil Hargett
Fleshed out HTML tests, with several negative tests. So far so good; gonna merge next
Branches
parsing
Phil Hargett
Adding profile information mostly as a reference for future use.
Branches
parsing
Phil Hargett
Added defgrammar and deflexer to streamline new definitions of both. Simplified exports and added to package file. Verifying basic HTML parsing still works.
Branches
parsing
Phil Hargett
Appear to have a working LALR(1) parser for a basic html grammar
Branches
parsing
Phil Hargett
Optimized grammar construction a bit by using a vector to hold states, and pre-computing the exits from each state (e.g., for a given symbol that transitions out of the state, the index of the state to transition to)
Branches
parsing
Phil Hargett
Small cleanups in grammar
Branches
parsing
Phil Hargett
Although unwieldy, the html grammar is sort of working--can parse first token successfully
Branches
parsing
Phil Hargett
I believe I have added code that removes all occurrences of :nil from a grammar, after making proper substitutions first to expand the rules that remain. Visual inspection of HTML grammar looks correct, and the resulting expanded rule set is not significantly larger than the original.
Branches
parsing
Phil Hargett
Refinements; need to remove :nil from grammars now
Branches
parsing
Phil Hargett
Cleaned up lexer error report function, and streamlined html lexer code more
Branches
parsing
Phil Hargett
Functional html lexer; lots of cleanup still to do, so work in progress
Branches
parsing
Phil Hargett
Removed obsolete package lines from system definition (were commented out)
Branches
parsing
Phil Hargett
Restructuring, splitting grammar, samples, and parser into separate files, plus other cleanup
Branches
parsing
Phil Hargett
Source code datastructures available again
Branches
parsing
Phil Hargett
Removed unnecessary globals
Branches
parsing
  1. Prev
  2. Next