自定义语言的多功能独立编辑器
Multi functional Standalone Editor for custom language
我被认为是为我的公司语言生成 Editor。如果此编辑器 独立 会更好。我的时间有限(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 文件类型
* 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.
任何形式的帮助、意见或建议都将不胜感激。
根据我的研究,我为处于我这种情况的人提出了这个 NetBeans && JavaCC 是比 ANTLR 更好的解决方案,但是它也需要大量的改变,而且它离独立很远。其中最接近独立且易于管理且只需少量时间和精力的最好的是最后一个 Geany 和 scintilla
我被认为是为我的公司语言生成 Editor。如果此编辑器 独立 会更好。我的时间有限(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 文件类型
* 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.
任何形式的帮助、意见或建议都将不胜感激。
根据我的研究,我为处于我这种情况的人提出了这个 NetBeans && JavaCC 是比 ANTLR 更好的解决方案,但是它也需要大量的改变,而且它离独立很远。其中最接近独立且易于管理且只需少量时间和精力的最好的是最后一个 Geany 和 scintilla