我被认为是为我的公司语言生成编辑。如果这个编辑器独立会更好。我的时间有限(2.5周),知识有限(大学3年)。此语言看起来与任何其他语言不同,并且是针对特定硬件设计的。我的编辑器必须包含尽可能多的以下功能
Syntax highlighting
Indentation
Brace Matching
Code Folding
Error Parsing
Reformatting
Snippets
我使用以下解析器和词法生成器对以下IDE进行了一些研究。
1)NetBeans&& JavaCC的
关于这个的问题是
*hard to make standalone
*because syntax and semantic is too different that java like languages
it needs to change most of Java.1.5.jj file.
2)NetBeans和ANTLR
* hard to make standalone again
* more time consuming because it makes me deal with the thing that already
done . I have Language syntax and semantics i dont need to build it up
again just need to syntax defined language parser and lexer.
3)Eclipse XTEXT
* it seems me even more time consuming and more labored than others
4)Geany FILETYPES
* I used Geany Filetypes it was good in the beginning. I was able to
do snippets, syntax colorings but i could not code blocking
because my language does not use "{" and "}" instead use some keywords
like **end if** and **end for**
* The second problem about this choice i must assign in filetype
configuration file: lexer_filetype and styling ,but as i mentioned
because distinctions with other language i must have its own
lexer_filetype and styling
5)Geany和scintilla
* Could not find good tutorial about their cooperation.
任何形式的帮助,建议或建议都将受到赞赏。
答案 0 :(得分:0)
根据我的研究,我会针对我所处的人 NetBeans&& JavaCC 是比 ANTLR 更好的解决方案,但它也需要大量的改变,而且远远不是独立的。其中最好的一个是独立且易于管理的少量时间和精力是最后一个 Geany和scintilla