I am using flex for writing a scanner for verilog code. I want to write a regular expression which takes all characters except words
define, ifdef, //, /* .
I tried negative lookahead concept, but seems like flex doesn't support it.
Ex: If there is a string
assign a = b; **This should be scanned in the same expression**
assign a =b; //comment **Here line assign a=b should match the regex, but //comment should not match.**