End Of Line character and others not working.

Alan alanpotteiger at gmail.com
Fri Aug 16 21:53:16 PDT 2013


Hello!  The past few hours I've been working on some things and I 
came accross a small bug.

I'm essentially practicing lexing and parsing by implementing a 
(very) simple language.  Everything is going great so far 
(variable declarations, writing to stdout etc...) but I have a 
small problem with my string literals.  I've got them working 
fine, quotes can be escaped etc... But when they include the new 
line character (\n) for example and it's written out it doesn't 
create a new line but prints out those characters raw.  Does 
anyone have any idea why?
Any help is very much appreciated!


More information about the Digitalmars-d-learn mailing list