Questions tagged [javacc]

JavaCC - the Java Compiler Compiler - is a popular parser generator and lexical analyzer generator for Java and C++.

JavaCC (Java Compiler Compiler) is an open source parser generator and lexical analyzer generator written in . It produces either or . Both and the parsers generated by have been successfully run on a variety of platforms.

generates top-down parsers. JavaCC can resolve choices based on the next k input tokens, and so can handle LL(k) grammars automatically; by use of "lookahead specifications", it can also resolve choices requiring unbounded look ahead. also generates lexical analyzers in a fashion similar to lex. The tree builder that accompanies it, JJTree, constructs its trees from the bottom up.

is licensed under a BSD license.

Homepage: http://javacc.org/

486 questions
-2
votes
1 answer

How to make custom JavaCC Exception messages?

I want to just start this of by saying I know that a similar question exists here: How to create specific error messages based on parse exceptions in JavaCC But I don't have the required 50 rep to comment on it to ask my question. I'm trying to…
Rikg09
  • 165
  • 2
  • 2
  • 14
-2
votes
1 answer

Hello World with JavaCC

Sorry for such a dumb question, I have to read a file (hello_world.txt) and printline it. I'm trying not to use the HELLO_WORLD token, but im not doing well, so I've comment my attempts. How can i read it using as STR token? Thanks. This the…
Marisco
  • 125
  • 1
  • 3
  • 16
-2
votes
1 answer

javacc: fail to compile the grammar file(.jj)

I am new to javaCC,and I am using Windows and download version 5.0 and unzip it.I have installed jdk before and I set path properly.but when I want to compile the Simple1.jj, the warning message given like this: Warning: ParseException.java: File…
-2
votes
2 answers

Don't stop parsing after first exception

for default JavaCC stops parsing after first exception (TokenMgrError) but is a way to parse all input until EOF? I need that to list all errors instead of stoping at the first one. Thanks.
alvr
  • 391
  • 1
  • 3
  • 9
-3
votes
2 answers

Code Conventions / coding rules of a language

I would like to define a set of coding rules of a language structural proprietary language, how can I proceed? thank you very much
terre
  • 15
  • 7
-4
votes
2 answers

Can javacc generate java code?

I know that javacc can generate code, written in java, which can analyse your code (in a language that you create it's grammar). What I really need, is to generate the java code itself.For example, let's say I write this in my grammar: show "hello…
1 2 3
32
33