我被认为为我的公司语言生成编辑器。如果这个编辑器是独立的会更好。我的时间有限(2.5周),知识有限(大学3年)。这种语言看起来不像任何其他语言,是为特定硬件设计的。我的编辑器必须包括尽可能多的以下功能
Syntax highlighting
Indentation
Brace Matching
Code Folding
Error Parsing
Reformatting
Snippets
我使用下面的解析器和lexer生成器对以下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文件类型
* 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和闪烁体
* Could not find good tutorial about their cooperation.
任何形式的帮助、建议或建议都将不胜感激。
根据我的研究,我为处于我这种情况的人提出了这个问题NetBeans&;JavaCC是比ANTLR更好的解决方案,但它也需要大量的更改,而且它离独立还很远。其中最好的接近独立且易于在少量时间和精力内管理的是最后一个Geany和闪烁