Re:So you want to write your own language?
by WalterBright on Tuesday February 04, 2014 @08:34PM
(#7181403)
> What do you use to build your parsers?
I use a text editor.
Using a coverage analyzer is adequate for evaluating the thoroughness of the tests.
Yes, it all is a trivially small amount of work compared to the rest of a language project (and even compared with the rest of the compiler). You'll spend much more time just trying to figure out how to convert floating point values to strings.
Re:So you want to write your own language?
by haberman on Wednesday February 05, 2014 @04:40AM
(#7182783)
> You'll spend much more time just trying to figure out how to convert floating point values to strings.
I should hope not, since the source code to printf() should have pretty much the complete answer to that!
Re:So you want to write your own language?
by WalterBright on Wednesday February 05, 2014 @10:18PM
(#7188517)
It may not have a license that is compatible with your needs.
And yes, I did have to do my own float => string implementation.
Re:So you want to write your own language?
by mattfenwick on Friday February 07, 2014 @04:04AM
(#7195413)
Just to clarify: I'm asking what strategy/approach you use -- hand-written vs. generator, bottom-up vs. top-down, backtracking, ambiguous, context-sensitive, semantic actions, etc. Sorry for the confusion.
I'm genuinely interested by your comment. If I'm interpreting it correctly, you seem to be claiming that ensuring corner cases are handled correctly, testing, and maintaining a parser require a trivially small amount of work. What do you use to build your parsers?