News for hackers. Stuff that matters.
Re:How I Came to Write D (2014) by Forge36 on Sunday June 03, 2018 @01:01PM (#17220450)
Annoying thing I learned from doing that: source code does not follow a recursive structure. Preprocessor directives allow for some really strange structures. Of course it only caused my problems for a single file at work. I think a custom stack I can read through when the parsing gets weird makes slightly more sense in retrospect.
Re:How I Came to Write D (2014) by setr on Sunday June 03, 2018 @02:29PM (#17220927)
never wrote a c parser but I don't see why the preprocessor would change it from being recursive as long as C is; after preprocessing finishes, you should just have normal C?