pancy
1 min readOct 12, 2017

--

Thanks, this is really well-written. How can we manipulate the position of lexbuf though? For instance, I want to implement a lexer for Brainfuck loop so when ] is found, the lexer check the state of the tape and decide if it should skip back to the matching [ (which would require changing the value of lex_curr_p I suppose) or just carry on.

--

--

pancy
pancy

Written by pancy

I’m interested in Web3 and machine learning, and helping ambitious people. I like programming in Ocaml and Rust. I angel invest sometimes.

No responses yet