#Production ready regular expressions in zig?

1 messages · Page 1 of 1 (latest)

stuck ocean
#

I want to build a lexer so i need a regex lib

cobalt adder
#

No you don't

stuck ocean
#

?

cobalt adder
#

Regex is a very bad way to make a lexer

stuck ocean
#

then what should i do?

#

hand code my lexer?

cobalt adder
#

Yeah why not?

stuck ocean
#

okay

inland talon
#

Handles floats, strings, variables, 1 and 2 character operators.

empty dagger
#

use re2c

#

for lexer

#

there's a fork that generates zig code

#

I used it and it works

cobalt adder
stuck ocean
empty dagger