I am working on writing a flex scanner for a language supporting nested comment like this:
/* /**/ */
I use to work on ocaml/ocamllex that supp
Same way you would any nested stuff: Stacks
Stacks
Stack the openings until their respective closings are found. If the stack is uneven at the end, you're missing either an opening or a closing element.
openings
closings