user765443
user765443

Reputation: 1892

conditional regular expression in lexer

I want to put conditional check into lexer.l below line.But I am getting unknown error processing section when I tried to use pipe separator in the code.

LIMITLINEEND ((\n{2})|([a-z]))(Error : unknown error processing section)

Upvotes: 0

Views: 171

Answers (2)

user765443
user765443

Reputation: 1892

I should use parenthesis without using space. like ((a)|(b)) .

Upvotes: 0

user484068
user484068

Reputation:

For a start change occurences of [+-] to [-+].

Upvotes: 1

Related Questions