Closed lawrancej closed 12 years ago
Write a function that takes in a regular expression and a character, and produces a new regular expression, called the derivative, as described in http://matt.might.net/articles/parsing-with-derivatives/ and http://matt.might.net/papers/might2011derivatives.pdf. The function will use the visitor class (see examples/visitor-demo.c for an idea).
examples/visitor-demo.c
GObject *compilerkit_derivative_parser(GObject *regex, gunichar symbol)
Here's an example of this in Java.
https://github.com/lawrancej/CompilerKitJava/blob/master/CompilerKit/src/com/joeylawrance/language/RegularDerivativeVisitor.java
Write a function that takes in a regular expression and a character, and produces a new regular expression, called the derivative, as described in http://matt.might.net/articles/parsing-with-derivatives/ and http://matt.might.net/papers/might2011derivatives.pdf. The function will use the visitor class (see
examples/visitor-demo.c
for an idea).GObject *compilerkit_derivative_parser(GObject *regex, gunichar symbol)