How to make your own Programming language ?

???

  • (2 Pages)
  • +
  • 1
  • 2

29 Replies - 29059 Views - Last Post: 12 August 2010 - 11:03 AM

#16 Rickster0  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 16
  • View blog
  • Posts: 236
  • Joined: 08-July 08

Re: How to make your own Programming language ?

Posted 17 November 2008 - 06:59 AM

lol
Was This Post Helpful? 0
  • +
  • -

#17 reyben_89  Icon User is offline

  • D.I.C Head

Reputation: 2
  • View blog
  • Posts: 69
  • Joined: 30-November 08

Re: How to make your own Programming language ?

Posted 01 December 2008 - 10:46 PM

View Postgabehabe, on 13 Nov, 2008 - 01:07 PM, said:

It's funnier because you can still see where you didn't crop the corners properly. :lol:

Future reference: gabehabe~ All lower case. See, this is why I don't call any more.

EDIT: also looks like someone went a little crazy with the clone tool in PS. no2, did you do that, or was it that shoddy when you found it? :lol:

:D
testings
Was This Post Helpful? 0
  • +
  • -

#18 Rickster0  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 16
  • View blog
  • Posts: 236
  • Joined: 08-July 08

Re: How to make your own Programming language ?

Posted 03 December 2008 - 09:47 AM

this makes no sense ???

can anyone answer my Question .
Was This Post Helpful? 0
  • +
  • -

#19 gabehabe  Icon User is offline

  • GabehabeSwamp
  • member icon




Reputation: 1385
  • View blog
  • Posts: 10,962
  • Joined: 06-February 08

Re: How to make your own Programming language ?

Posted 06 December 2008 - 07:55 AM

...It's already been answered.

Compiler theory. No offence, but I wouldn't say you're ready for it yet.

Heck, I don't think I'm ready for it. But I've got two books on the way.

I'll blog about it soon.
Was This Post Helpful? 0
  • +
  • -

#20 Rickster0  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 16
  • View blog
  • Posts: 236
  • Joined: 08-July 08

Re: How to make your own Programming language ?

Posted 08 December 2008 - 06:45 AM

oh allright...
Was This Post Helpful? 0
  • +
  • -

#21 numerical_jerome  Icon User is offline

  • D.I.C Head

Reputation: 12
  • View blog
  • Posts: 167
  • Joined: 16-September 07

Re: How to make your own Programming language ?

Posted 12 December 2008 - 03:06 PM

how to make your own programming language.....

1) Start with a Turing Machine
2) Abstract
3) repeat 2 until you have something that looks like an unholy child of english and algebra

note that your mileage may vary

-Jerome
Was This Post Helpful? 1
  • +
  • -

#22 no2pencil  Icon User is online

  • Admiral Fancy Pants
  • member icon

Reputation: 5413
  • View blog
  • Posts: 27,430
  • Joined: 10-May 07

Re: How to make your own Programming language ?

Posted 12 December 2008 - 03:34 PM

View Postgabehabe, on 6 Dec, 2008 - 08:55 AM, said:

I don't think I'm ready for it. But I've got two books on the way.

Same here. I saw a book at a Garage Sale for $2 on Compiler design & so I grabbed it up. It's in really good shape, so the original owner must have read it as much as I have.
Was This Post Helpful? 0
  • +
  • -

#23 Rickster0  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 16
  • View blog
  • Posts: 236
  • Joined: 08-July 08

Re: How to make your own Programming language ?

Posted 18 December 2008 - 07:02 AM

can someone grab me a link to a good book ?? please
Was This Post Helpful? 0
  • +
  • -

#24 gabehabe  Icon User is offline

  • GabehabeSwamp
  • member icon




Reputation: 1385
  • View blog
  • Posts: 10,962
  • Joined: 06-February 08

Re: How to make your own Programming language ?

Posted 18 December 2008 - 10:30 AM

The two that I've got are awesome.

Modern Compiler Implementation in C
Compliers: Principals, techniques and tools. (aka the dragon book)
Was This Post Helpful? 0
  • +
  • -

#25 rahulbatra  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 16
  • View blog
  • Posts: 185
  • Joined: 28-December 05

Re: How to make your own Programming language ?

Posted 01 January 2009 - 06:34 AM

Before reading a book on compilers or even interpreters, I would suggest a book on Programming Language Design and Theory. A lot of thought must go into designing your language before you begin to start implementing a compiler for it like types, paradigm, abstraction levels, basic data structures.

I would suggest (if you really want to put in hard work) to read a minimal language like Scheme first. From there read a language theory book and make choices about the design of your language. See whether you want to make it Turing Complete, whether you want to have support for lambda's. And then only proceed with making a prototype of it.
Was This Post Helpful? 0
  • +
  • -

#26 Rickster0  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 16
  • View blog
  • Posts: 236
  • Joined: 08-July 08

Re: How to make your own Programming language ?

Posted 29 January 2009 - 04:36 AM

ok ty
Was This Post Helpful? 0
  • +
  • -

#27 jerryroy  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 34
  • Joined: 10-November 07

Re: How to make your own Programming language ?

Posted 31 January 2009 - 08:44 AM

that is so funny but im curious though about how to create an interpreter
Was This Post Helpful? 0
  • +
  • -

#28 Rickster0  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 16
  • View blog
  • Posts: 236
  • Joined: 08-July 08

Re: How to make your own Programming language ?

Posted 12 February 2009 - 03:21 AM

?
Was This Post Helpful? 1

#29 dorknexus  Icon User is offline

  • or something bad...real bad.
  • member icon

Reputation: 1256
  • View blog
  • Posts: 4,618
  • Joined: 02-May 04

Re: How to make your own Programming language ?

Posted 10 August 2010 - 09:20 AM

A simple and naieve interpreter would be fairly straight forward to write. I would use Flex for tokenizing and Bison for parsing.

Have the parser generate an Abstract Syntax Tree. Finally, walk the AST, executing code as you go. Fairly straight forward although horrible for performance (that's how Ruby 1.8 and 1.9 do it)
Was This Post Helpful? 0
  • +
  • -

#30 Sn0wBum  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 9
  • View blog
  • Posts: 178
  • Joined: 04-February 10

Re: How to make your own Programming language ?

Posted 12 August 2010 - 11:03 AM

I was going to suggest Bison as a starting point as well.
Was This Post Helpful? 0
  • +
  • -

  • (2 Pages)
  • +
  • 1
  • 2