anyone have an example of a flex file suitable for a custom language
Hi,
Does anyone have an example flex grammer file suitable for a custom language plugin? i have several samples of the resulting lexer, but you can't exactally reverse engineer that. Thanks.
-- bryan
Please sign in to leave a comment.
Hello Bryan,
You can find JavaScript.flex in the JavaScript plugin sources in the development
kit.
Here are a couple others:
http://svn.jetbrains.org/idea/Trunk/ruby/src/org/jetbrains/plugins/ruby/ruby/lang/lexer/ruby.flex
http://svn.jetbrains.org/idea/Trunk/groovy/src/org/jetbrains/plugins/groovy/lang/lexer/groovy.flex
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
Thanks Dmitry, i'll give this a look. Also thanks for pointing out where the source for the entire plugin is.