Best practices for parsing files

lurker lurker at mailinator.com
Thu Jan 25 14:13:42 PST 2007


Hi.

I'm new to D but not to programming. I would like to write a small scripting
engine using the great D programming language but I'm undecided on what
techniques should use to parse source files.

Since slices seem to be a central feature of D I was thinking on reading the
whole file in memory and use slices to build the syntax tree.

Does anyone have examples of parsing files using this method?

Any other methods I should consider?

Thanks.



More information about the Digitalmars-d mailing list