Romildo,
Three more specs to add to the list for IntelliJ Community Edition:
<http://git.jetbrains.org/?p=idea/community.git;a=blob_plain;f=xml/impl/src/com/intellij/lexer/_HtmlLexer.flex;hb=master>
<http://git.jetbrains.org/?p=idea/community.git;a=blob_plain;f=xml/impl/src/com/intellij/lexer/_OldXmlLexer.flex;hb=master>
<http://git.jetbrains.org/?p=idea/community.git;a=blob_plain;f=xml/impl/src/com/intellij/lexer/_XmlLexer.flex;hb=master>
Steve
Steve Rowe wrote:
> Hi Romildo,
>
> About 8 months ago I went and collected a bunch of links to freely
> downloadable JFlex grammars - you may be interested for the purpose of
> testing Pygments.
>
> Here's the list (all checked good links as of this writing), in no
> particular order (except for #1, which you will probably find especially
> interesting):
>
> 1. JFlex spec of an IntelliJ plugin for syntax highlighting JFlex specs
> in IntelliJ:
> <http://code.google.com/p/idea-jflex/source/browse/trunk/src/org/intellij/lang/jflex/lexer/JFlex.flex>
>
> 2. IntelliJ Community Edition has a bunch of JFlex scanners:
> <http://git.jetbrains.org/?p=idea/community.git;a=blob_plain;f=java/java-impl/src/com/intellij/lexer/_JavaLexer.flex;hb=master>
> <http://git.jetbrains.org/?p=idea/community.git;a=blob_plain;f=platform/lang-api/src/com/intellij/lexer/_JavaDocLexer.flex;hb=master>
> <http://git.jetbrains.org/?p=idea/community.git;a=blob_plain;f=platform/lang-impl/src/com/intellij/codeInsight/template/impl/TemplateTextLexer.flex;hb=master>
> <http://git.jetbrains.org/?p=idea/community.git;a=blob_plain;f=platform/lang-impl/src/com/intellij/codeInsight/template/impl/_MacroLexer.flex;hb=master>
> <http://git.jetbrains.org/?p=idea/community.git;a=blob_plain;f=platform/lang-impl/src/com/intellij/ide/fileTemplates/impl/FileTemplateTextLexer.flex;hb=master>
> <http://git.jetbrains.org/?p=idea/community.git;a=blob_plain;f=platform/lang-impl/src/com/intellij/psi/search/scope/packageSet/lexer/_ScopesLexer.flex;hb=master>
> <http://git.jetbrains.org/?p=idea/community.git;a=blob_plain;f=plugins/groovy/src/org/jetbrains/plugins/groovy/lang/groovydoc/lexer/gdoc.flex;hb=master>
> <http://git.jetbrains.org/?p=idea/community.git;a=blob_plain;f=plugins/groovy/src/org/jetbrains/plugins/groovy/lang/lexer/groovy.flex;hb=master>
> <http://git.jetbrains.org/?p=idea/community.git;a=blob_plain;f=plugins/properties/src/com/intellij/lang/properties/parsing/Properties.flex;hb=master>
> <http://git.jetbrains.org/?p=idea/community.git;a=blob_plain;f=plugins/xpath/xpath-lang/src/org/intellij/lang/xpath/xpath-lexer.flex;hb=master>
> <http://git.jetbrains.org/?p=idea/community.git;a=blob_plain;f=RegExpSupport/src/org/intellij/lang/regexp/regexp-lexer.flex;hb=master>
>
> 3. Jsyntaxpane's JFlex specs:
> <http://code.google.com/p/jsyntaxpane/source/browse/branches/r095/jsyntaxpane/src/main/jflex/jsyntaxpane/lexers/>
>
> 4. J-ISIS <http://kenai.com/projects/j-isis> has two JFlex specifications:
> <http://kenai.com/projects/j-isis/sources/subversion/content/jisis-workspace/jisis%20NetBeans%20Project/jisis/JISIS%20Core/src/org/unesco/jisis/jisiscore/fmt/FmtScanner.flex>
> <http://kenai.com/projects/j-isis/sources/subversion/content/jisis-workspace/jisis%20NetBeans%20Project/jisis/Search%20Engine/src/org/unesco/jisis/core/searchengine/SchScanner.flex>
>
> 5. RSyntaxTextArea <http://fifesoft.com/rsyntaxtextarea/> has a bunch of
> grammars:
> <http://svn.fifesoft.com/viewvc-1.0.5/bin/cgi/viewvc.cgi/RSyntaxTextArea/trunk/src/org/fife/ui/rsyntaxtextarea/modes/?root=RSyntaxTextArea>
>
> 6. JAMWiki <http://jamwiki.org> has 5 JFlex grammars at:
> <http://jamwiki.svn.sourceforge.net/viewvc/jamwiki/wiki/trunk/jamwiki-core/src/main/jflex/>
>
> 7. Arboreal XML browser <http://archimedes.fas.harvard.edu/arboreal/>
> has several JFlex grammars, in the source code tar.gz in the root of the
> tree.
>
> 8. OstermillerUtil Java Utilities UberProperties lexer:
> <http://ostermiller.org/utils/PropertiesLexer.lex.html>
>
> 9. OpenGrok source browser for OpenSolaris
> <http://opensolaris.org/os/project/opengrok/> has some JFlex grammars -
> look in each (sub)directory for .lex files:
> <http://src.opensolaris.org/source/xref/opengrok/trunk/src/org/opensolaris/opengrok/analysis/>
> <http://src.opensolaris.org/source/xref/opengrok/trunk/src/org/opensolaris/opengrok/search/context/>
>
>
> 10. Weka Data Mining software <http://www.cs.waikato.ac.nz/ml/weka/> has
> a scanner for JSON data files, math expressions, etc.:
> <https://svn.scms.waikato.ac.nz/svn/weka/trunk/weka/src/main/java/weka/core/json/Scanner.jflex>
> <https://svn.scms.waikato.ac.nz/svn/weka/trunk/weka/src/main/java/weka/core/mathematicalexpression/Scanner.jflex>
> <https://svn.scms.waikato.ac.nz/svn/weka/trunk/weka/src/main/java/weka/filters/unsupervised/instance/subsetbyexpression/Scanner.jflex>
>
> 11. Article: "Converting MIF to XML - Java Version":
> <http://left.subtree.org/2007/01/31/converting-mif-to-xml-java-version/>
>
> 12. Article: "Handling Uncommon File Formats - Introducing Lexers" (see
> .zip file from link "in this file"):
> <http://www.javaranch.com/journal/2008/04/Journal200804.jsp#a4>
>
> 13. Article: "Analizador léxico, sintáctico y semántico con JFlex y CUP":
> <http://crysol.org/es/node/819>
>
> ------------------------------------------------------------------------------
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> --
> jflex-users mailing list
> https://lists.sourceforge.net/lists/listinfo/jflex-users
>
>
|