Updated GSoC 2014 Ideas (markdown)
This commit is contained in:
parent
5278db6c47
commit
c878524031
|
@ -265,6 +265,13 @@ ___
|
||||||
* Model it after re2c or the Ragel state machine generator
|
* Model it after re2c or the Ragel state machine generator
|
||||||
* Alternatively model it after Flex.
|
* Alternatively model it after Flex.
|
||||||
|
|
||||||
|
Here is a sketch of a possible implementation:
|
||||||
|
|
||||||
|
* Parse regular expressions into an NFA and ensure the attached Nimrod actions are kept around through the next different passes.
|
||||||
|
* Translate the NFA to an DFA: http://web.cecs.pdx.edu/~harry/compilers/slides/LexicalPart3.pdf
|
||||||
|
* Minimize the DFA with Hopcroft's algorithm: http://en.wikipedia.org/wiki/DFA_minimization
|
||||||
|
* Translate the DFA into Nimrod code and attach the actions.
|
||||||
|
|
||||||
**Desirable skills**: Knowledge of lexer generators. How to translate regexes into DFAs and how to optimize the resulting automatons.
|
**Desirable skills**: Knowledge of lexer generators. How to translate regexes into DFAs and how to optimize the resulting automatons.
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue