Can I use AST / JDT for other languages? For example, write your own parser for C # that somehow uses AST technology?
If you look at the article " Eclipse JDT - Abstract Syntax Tree (AST) and Java Model - Tutorial , JDT and its AST are for Java.
Eclipse Java Development Tools (JDT) API- Java .AST - Java. AST API , , .AST org.eclipse.jdt.core.dom Eclipse org.eclipse.jdt.core.
org.eclipse.jdt.core.dom
org.eclipse.jdt.core
AST , , XText
alt text http://www.eclipse.org/Xtext/images/screenshot-title.png
, jdt, Java. ASTView
. Eclipse ASTParser Java Eclipse AST.
JDT ( , . Mark), Java, . #, antlr - , . - , Antlr #.
ANTLR (ANother Tool for Language Recognition), , . , , github. https://www.antlr.org/ https://github.com/antlr/grammars-v4
You will need to create your own AST model.
Source: https://habr.com/ru/post/1725139/More articles:Problem sending external emails to James mail server - gmailКак Google генерирует токены идентификатора OpenID? - djangoUse Python to retrieve ListView items from another application - pythonWhat is the easiest / most elegant way to iterate over matches in vim script / function? - vimHow to pass custom argument to event listener in JavaScript? - javascriptHow to implement file transfer in jabber net - c #It is possible to work with vs2008 project files in vs2010 - visual-studio-2008UCS2 / HexEncoded Symbols - phpGet all constants from a class - phpIs there heap compaction in C ++? - c ++All Articles