2015-06-30 33 views
0

我認爲是爲我的公司語言生成編輯器。如果這個編輯器是獨立版會更好。我有限的時間(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和火花

* Could not find good tutorial about their cooperation. 

任何形式的幫助,意見或建議,將不勝感激。

+0

你的問題是什麼? – frlan

+0

可以選擇什麼?對於爲定製語言生成編輯器,您有什麼建議? – MIRMIX

+0

這個問題是廣泛的,主要是基於意見。沒有一個通用的解決方案。把你的時間和測試全部或只是嘗試一個,並解決您可能遇到的問題。沒有明確的是或否或「使用此」。 – frlan

回答

0

從我的研究,我想出了這個對人在我的處境的NetBeans & &的JavaCC是比ANTLR更好的解決方案,但它也需要噸的變化,它是遠是獨立的。其中最接近獨立和易於管理的少量時間和精力是最後一個Geany和scintilla