mnbujold / c415-compiler

Fall 2012 CMPUT 415 Compiler Course
0 stars 3 forks source link

Newlines in strings will screw up line count #18

Open dchui1 opened 11 years ago

dchui1 commented 11 years ago

Having non escaped new lines (eg the user hitting the return key) within a string will screw up the line count; these are not counted towards the newline and so the line count will be off by however many newlines there are in there

dchui1 commented 11 years ago

How to differentiate between an escaped \n or an actual line feed? I'm not sure...