I'm in the process of making a lex program to scan a Pascal source. But, i'm stuck at strings. How do i handle Pascal strings in lex? In Pascal, strings are enclosed by ' characters. The character ' may be included within a string by doubling it, eg: 'don''t'. I also need to return the value of the string along with the STRING token. Thanks.