compiler construction - are big programming languages implemented using tools like antlr ,javacc etc -
I was getting acquainted with the ANLR, so this was the question. If I want to create a strong programming language like Java or C #, then will I use the compiler tool to create it or write handwritten code for the compiler. Are there any practical examples of widely used languages while using compiler tools? Also there are performance problems with tool generated code vs. handwritten compiler.
I believe Java compiler was / A unit written in the Sun, C, and Solaris had a hardware company with long investments, so they knew best.
They may have used the Si-Lex / Parser, such as grammar for yacc and their java but it was certainly not ANLDR.
Update: I was thinking that this was true for first javac.exe, but I was not sure. A comment below said that the current incarnation of the Java compiler is actually written in Java.
You can use ANTLR as the basis for Java or C # or any other language. (I believe you can see Java grammar for ANTLR.)
You start with a grammar, lex and paras in an abstract syntax tree (AST), and then your byte code Or any other thing
You may be interested.
Comments
Post a Comment