Language Design Resource

A77e71b962cd6c7c3b885f0488452f1f
0
tobeythorn 101 Sep 23, 2009 at 18:36

I’ve become interested in programming language design and am trying to make my own language. Do you know if there is a forum like devmaster.net for discussing language design?

Thanks,
-Tobey

6 Replies

Please log in or register to post a reply.

Ceee4d1295c32a0c1c08a9eae8c9459d
0
v71 105 Sep 24, 2009 at 12:53

There isn’t a proper forum on language design, but you can google for
parsers and lexers, rcently i have been interested too and i found that there is a lot of theory behind have a look here for now

http://www.relisoft.com/book/lang/project/3stub.html

A77e71b962cd6c7c3b885f0488452f1f
0
tobeythorn 101 Sep 24, 2009 at 15:19

Maybe I should have posted this in the Lounge. In any case, I did try Google, and apart from forums for specific languages (which I have already be using), I didn’t find any forums focused on general language design. Thanks for the link.

B7dcbc0c0f07253f25ff5c25fe38c081
0
SamuraiCrow 101 Sep 24, 2009 at 15:28

If you want to make a JIT or static compiler, you might look into using http://www.llvm.org/ to build it. It includes a cross-platform framework and an example tutorial on how to write a parser by hand called the Kaleidoscope Tutorial.

My partner and I am working on a PEG-based parser generator for the LLVM Assembly language so that might be handy for you. It’s a subproject of our own programming language which is called Mattathias.

36b416ed76cbaff49c8f6b7511458883
0
poita 101 Sep 24, 2009 at 17:05

Are you looking for tips on language design or compiler/interpreter design? They’re quite different things.

If it’s the former then I suggest looking up the works of John Backus, Niklaus Wirth, and Alexander Stepanov. I don’t really agree with some of their views, but they’re very insightful and fundamental to language design. I also suggest you brush up on your abstract algebra, and the theories of formal languages and parsing.

A77e71b962cd6c7c3b885f0488452f1f
0
tobeythorn 101 Sep 24, 2009 at 17:24

Poita, I’m interested in information/discussion on language design, not compiler/interpreter design. Thanks for those names. Thus far, I’ve found understanding/deciding how a language should work much more challenging than deciding how to write an interpreter.

36b416ed76cbaff49c8f6b7511458883
0
poita 101 Sep 24, 2009 at 18:29

It certainly is a very tricky task. I’ve been trying to think up a language for a long time now, but keep hitting brick walls in my design.