1 Replies - 1124 Views - Last Post: 12 November 2010 - 05:04 AM Rate Topic: -----

#1 zkai  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 12-November 10

How I can implement a new language?

Posted 12 November 2010 - 04:39 AM

How I can implement a new language?

hello this is my first topic here;

how we can implement a new language that has its own keywords?

Example 1: Considering we have a language expression that evaluates

arithmetic, the grammar contains the following keywords:

"+" "-" "*" "/" "." "(" ")"

Example 2: A language that can perform operation on a form

logical,his grammar contains the following keywords:

"And" "or" "<->" "->" "(" ")" .......


the common thing in these languages writing does not exceed one line.


how we can make a parser syntactic and semantics?

give me some ideas to get start;

This post has been edited by zkai: 12 November 2010 - 04:41 AM


Is This A Good Question/Topic? 0
  • +

Replies To: How I can implement a new language?

#2 JackOfAllTrades  Icon User is offline

  • Saucy!
  • member icon

Reputation: 6091
  • View blog
  • Posts: 23,605
  • Joined: 23-August 08

Re: How I can implement a new language?

Posted 12 November 2010 - 05:04 AM

We have a series of tutorials on this. Here's part 1.
Was This Post Helpful? 1
  • +
  • -

Page 1 of 1