Hacker News new | past | comments | ask | show | jobs | submit login

I'll pretend you're asking in earnest: Depending on the need, you have a bevy of parser-generators to choose from. My favorite is SableCC.

Or, if you want something lightweight where you effectively have a DSL without creating an actual language, look towards static imports + fluent interfaces + builder pattern:

http://blog.centuryminds.com/2007/10/java-static-imports-flu...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: