-   Programming (
-   -   How does one create a language? (

mhelliwell 03-13-2005 03:00 PM

How does one create a language?
To create a language, is it that you create an interpreter in another language, or some other way? Thanks.

coolman0stress 03-13-2005 03:05 PM


You create a compiler that takes your source files, reads and understands your syntax (language) and then converts it into machine language.

A common approach is to write a compiler or interpreter in C, which merely converts your source files into C code which are then passed to the C compiler to convert to machine code.

nixcraft 03-14-2005 02:21 AM

To write compiler you need something like yacc or lex Just seach google for both of them to get more info

perfect_circle 03-14-2005 02:37 AM

Well first of all you create the syntax of a language and you formalize it, using BNF for example. Then you create a lexical analyzer (lexer) which will be the first part of the compiler

All times are GMT -5. The time now is 11:46 AM.