javacc
Define variable name except reservred worsd in a compiler
I am trying to do a lexer for a subset of Java with JavaCC. And a variable name can be any combination of letter, digit and _, beginning with a letter. I have only one problem, reserved words (such as[详细]
2023-04-11 16:47 分类:问答Are Commas only used in a picture clause within Cobol
I\'m working from this parser http://mapage.noos.fr/~bpinon/cobol.jj and trying to get pictures to work with com开发者_如何转开发mas. It seems to just support commas out of the picture string as a sep[详细]
2023-04-10 05:57 分类:问答This cobol Grammar doesn't handle --9 picture
I\'m using the grammar on this site in my javacc. It works fine apart from some picture statements. For example ----,---,---.99 or --9.[详细]
2023-04-07 19:09 分类:问答What parser do JRuby and Jython use for generating JVM bytecode?
Do you guys know what parser JRuby and Jython use for开发者_JAVA技巧 generating JVM bytecode? Is it ANTLR or JavaCC or are they using some other parser in their implementation?JRuby seems to be answer[详细]
2023-03-24 00:02 分类:问答Are there any Eclipse language IDEs -plugins- that use JavaCC?
I\'m using JavaCC to create a language plugin for Eclipse and I wanted to know if there are any stable language IDEs for Eclipse that use JavaCC to create their AST representations and Lexer/Pa开发者_[详细]
2023-03-20 22:58 分类:问答JavaCC action in token definition
I was wondering if it were possible to hook i开发者_StackOverflow中文版nto JavaCC\'s lexer to call a function to check if a character is valid.[详细]
2023-03-09 13:34 分类:问答Eclipse Compilation Error
I imported some JTB and JavaCC generated files into Eclipse and there is one line giving me an error - the first line (a comment) most of the class files says \"The type java.lang.Objec开发者_运维知识[详细]
2023-02-28 12:41 分类:问答How make support cyrillic letters in JavaCC?
Can I make cyrillic tokens for *.jjt file? For exampe tokens are given in jjt: TOKEN : /* LITERALS */ { < TEST: \"тест\" >[详细]
2023-02-27 18:10 分类:问答Trying to understand parsers
I\'m trying to use JavaCC to build a simple command line calculator that can handle a variety of expressions. While there are plenty of tutorials out there on how to write grammars, none that I\'ve se[详细]
2023-02-22 14:16 分类:问答Missing fields in JavaCC/JJTree node classes?
I \"inherited\" a project that uses JJTree from JavaCC to implement a simple language parser. Since the code was over 5 years old, I decided to update all dependencies, including JavaCC, to the latest[详细]
2023-02-18 04:54 分类:问答