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

> Honest question, wouldn't you just write a lexer with yacc/bison for a DSL?

Perhaps this article[1] can help answer the question (BTW, the title of the page belies its applicability). Check out Figure-1 specifically.

> How does a full programming language act as a base for a DSL, which is usually more limited than a programming language?

IMHO, this is what makes Forth both beautiful and mind bending, as Forth is a "full programming language" in which programs/systems written in it are expressed as a DSL defining the system itself. If that sounded recursive, then you're well on your way to grokking Forth :-).

1 - http://www.forth.org/lost-at-c.html




Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: