Factbites
 Where results make sense
About us   |   Why use us?   |   Reviews   |   PR   |   Contact us  

Topic: JavaCC


Related Topics
EGA

  
  JavaCC - Wikipedia, the free encyclopedia   (Site not responding. Last check: 2007-10-19)
JavaCC (Java Compiler Compiler) is a parser generator for the Java programming language.
JavaCC is similar to Yacc in that it generates a parser for a grammar provided in BNF notation, except the output is Java source code.
After WebGain shut down its operations, JavaCC was moved to its current home.
en.wikipedia.org /wiki/JavaCC   (114 words)

  
 Compiler construction:Using JavaCC's TokenManager - Wikibooks
JavaCC takes just one input file (called the grammar file), with is then used to create both classes for lexical analysis, as well as for the parser.
Since, however, this section is about using JavaCC to generate a token manager, and not about writing one by hand, this is not further discussed here.
A JavaCC grammar file usually starts with code which is relevant for the parser, and not the scanner.
en.wikibooks.org /wiki/Compiler_construction:Using_JavaCC's_TokenManager   (1021 words)

  
 Parsing With JavaCC- ADTmag.com
JavaCC was originally developed at SunTest, the Java test automation unit of Sun Microsystems.
These classes are generated by javacc and are the base of the lexical analysis portion of the parser.
When javacc generates the parser, several classes are generated—the two most important are the parser and token manager classes.
www.adtmag.com /java/article.asp?id=3608   (3694 words)

  
 guidod - university - java - javacc/jjtree problems
The jjtree is an add-on for javacc that adds java executions in the right places to generate an AST (abstract syntax tree) of the input.
Additionally I had heard that Oracle had donated a javacc specification of its sql dialect, so I was really hoping to find a decent parser already made and in a state that one would just start to modify it to fit my needs.
It did turn out that there was not much to be found, the three javacc references were derived from the Oracle variant which in turn was not specifically for the Oracle sql scripts but for some embedded form subset, a.k.a.
www.informatik.hu-berlin.de /~draheim/java/jjtree.html   (867 words)

  
 JavaCC Grammar Files
JavaCC does not perform detailed checks on the compilation unit, so it is possible for a grammar file to pass through JavaCC and generate Java files that produce errors when they are compiled.
JavaCC performs many syntactic and semantic checks on the grammar file during parser generation.
JavaCC does not do any processing of these declarations and code, except to skip to the matching ending brace, collecting all text encountered on the way.
www.cise.ufl.edu /help/software/JavaCC/javaccgrm.html   (5370 words)

  
 Java Compiler Compiler FAQ   (Site not responding. Last check: 2007-10-19)
JavaCC generated lexers resolve ambiguity of tokens by choosing the first one (among the all possible kinds of tokens that a particular string can match) as appears in the grammar.
So when the JavaCC sees this kind of a rule (that can be matched by ""), it issues a warning that there is a potential for looping.
Standard JavaCC behavior is to print such warning messages only when the global lookahead is 1 (set by the LOOKAHEAD option), and no explicit local lookahead has been specified for the first of the two choices that are ambiguous (in the printed message).
www.cs.albany.edu /~sreeni/JavaCC/faq.html   (4940 words)

  
 The JavaCC FAQ
JavaCC stands for "the Java Compiler Compiler"; it is a parser generator and lexical analyzer generator.
JavaCC is particularly useful when the input language has a complex structure that makes hand-crafting an input module a difficult job.
JavaCC is based on LL(1) parsing, but it allows you to use grammars that are not LL(1).
www.idevelopment.info /data/Programming/java/JavaCC/The_JavaCC_FAQ.htm   (7775 words)

  
 JavaCC, parse trees, and the XQuery grammar, Part 2
The article concludes by showing you how to develop a generalizable routine for walking and evaluating a parse tree that you'll generate from a small portion of the XQuery grammar.
Using the JavaCC parser generator has one major downside: Much or most of your client-side Java code needs to be embedded in the.jj grammar script that encodes your BNF (Backus-Naur Form).
JJTree is distributed as part of the JavaCC distribution (see Resources).
www-128.ibm.com /developerworks/xml/library/x-javacc2   (2435 words)

  
 JavaCC Home   (Site not responding. Last check: 2007-10-19)
Java Compiler Compiler [tm] (JavaCC [tm]) is the most popular parser generator for use with Java [tm] applications.
Given that we have seen JavaCC run on only around 5 or 6 platforms, we think this is a great testimonial to the "Write Once Run Anywhere" aspect of the Java programming language.
A repository of JavaCC grammars is being maintained by Dongwon Lee at UCLA.
cs.ecs.baylor.edu /~sturgill/class/oo/javacc   (283 words)

  
 [No title]   (Site not responding. Last check: 2007-10-19)
JavaCC (Java Compiler Compiler) [JavaCC:2003] is a tool that creates a Java file based on a given set of grammar rules.
In this project, I used JavaCC and a file based on the grammar rules that Java uses.
These methods were used for variables and method declarations so I had to use boolean values to ensure that the array brackets belonged to a method declaration.
www.cs.buffalo.edu /~pvg/cse305/samples/project1-sh.doc   (1270 words)

  
 JavaCC Task
To use the javacc task, set the target attribute to the name of the grammar file to process.
javacc assumes that the Java class name of the generated parser is the same as the name of the grammar file, ignoring the.jj.
If this is not the case, the javacc task will still work, but it will always generate the output files.
ant.apache.org /manual/OptionalTasks/javacc.html   (184 words)

  
 Implementing the XQuery grammar
JavaCC is used by both the W3C's Query Working Group to test new versions of the XQuery grammar, and by the author to generate the query-parsing code in Fatdog's open-source query engine product.
JavaCC is an example of a parser generator tool.
Using its own syntactic conventions (it has a grammar of its own, expressed in JavaCC), you describe your language or grammar using a set of rules (or productions) that are very similar in format to standard BNF notation.
www.fatdog.com /Extreme.html   (2955 words)

  
 MoreRead.com - Now You're Talkin' My Language! - 2005-03-01   (Site not responding. Last check: 2007-10-19)
JavaCC is a very powerful "compiler compiler" tool that can be used to formulate context-free grammars.
JavaCC stands for “Java® Compiler Compiler", a name that stands in homage to YACC, "Yet Another Compiler Compiler", the C-based tool developed by ATandT for the purposes of building parsers for C and other high-level languages.
JavaCC is a robust tool that can be used to define grammars and easily incorporate the parsing and exception handling for that grammar into your Java business application.
www.moreread.com /it/archives/2005/03/01/8305.shtml   (4189 words)

  
 experimentalstuff.com: JavaCC Open Source Announcement   (Site not responding. Last check: 2007-10-19)
The JavaCC project site has gone live this week (together with many other Java technologies) at Sun's new home for Java community activity: java.net.
As many of you may recall, JavaCC was originally written here in Sun Labs but was eventually licensed to Metamata (and subsequently Webgain) for free binary distribution.
The goal all along has been to move JavaCC into Open Source, and we are all very happy to see this goal finally achieved.
www.experimentalstuff.com /Technologies/JavaCC/announce.html   (360 words)

  
 Otaku, Cedric's weblog: Comment on ANTLR vs. JavaCC
I however decided to use JavaCC after a while mainly because I didn't want to have an antlr.jar in my classpath, cause unfortunatly antlr requires it at runtime.
The grammar syntax is closer to EBNF than JavaCC, the mailing list is quite helpful, and I can write a single grammar for multiple target languages.
I'm guessing they took over management of JavaCC as a "favor" to the community and have no one working on it hoping that somebody from outside the company will help out.
beust.com /weblog/mt-cedricqwerty.cgi?entry_id=145   (556 words)

  
 MoreRead.com - JavaCC, parse trees, and the XQuery grammar, Part 1 - 2005-03-01   (Site not responding. Last check: 2007-10-19)
A couple of reasons: I have a strong interest in XQuery, and JavaCC is used by the W3C's XML Query working group to build and test versions of the XQuery grammar, as well as the XPath grammar it shares with the XSL group.
JavaCC also creates six other auxilliary files that are used by the parser.
Continue with Part 2 to learn how to use JavaCC's companion tool, JJTree, to create a parser that builds a parse-tree representation of the parse at runtime.
www.moreread.com /it/archives/2005/03/01/9005.shtml   (2387 words)

  
 JavaCC : Java Glossary   (Site not responding. Last check: 2007-10-19)
JavaCC is a parser, like YACC, except that is it written in Java and generates Java code.
JavaCC is a LL(k) parser, whereas YACC is a LALR(1) parser, so the grammars look quite different.
The easiest way to learn the JavaCC language is to look at the example parsers.
mindprod.com /jgloss/javacc.html   (267 words)

  
 JMatrix - Advanced JavaCC Task for Ant
The source code for this new task is included in the text of this case, AND attached as a file at the end (no need to copy and past from the browser window if you don't wish to).
Finally, if it is not, then we generate the parser to the output directory by invoking the JavaCC Main.mainProgram method directly (ie, within the context of the current JVM).
This is used on init() to * confirm that javacc is in the classpath.
jmatrix.net /dao/case/case.jsp?case=7F000001-1CE669E-100CD1FFC32-6FA   (1308 words)

  
 WebGain | Products : JavaCC : The TokenManager MiniTutorial   (Site not responding. Last check: 2007-10-19)
The JavaCC lexical specification is organized into a set of "lexical states".
This allows these tokens to be recovered during parsing while at the same time these tokens do not participate in the parsing.
JavaCC has been bootstrapped to use this feature to automatically copy relevant comments from the input grammar file into the generated files.
svn.openlaszlo.org /openlaszlo/lps/3rd-party/docs/javacc/tokenmanager.html   (1387 words)

  
 WebGain | Products : JavaCC : JavaCC Licensing and Distribution Policy
The files generated by JavaCC are yours which you use at your own risk.
JavaCC does not have any runtime libraries (such as JAR files).
You are not authorized to distribute the JavaCC software unless, you sign a distribution agreement with WebGain.
www.ibiblio.org /maven/javacc/licenses/usage.html   (136 words)

  
 Debian -- javacc   (Site not responding. Last check: 2007-10-19)
Java Compiler Compiler [tm] (JavaCC [tm]) is (according to sun) "the most popular parser generator" for use with Java [tm] applications.
A parser generator is a tool that reads a grammar specification and converts it to a Java program that can recognize matches to the grammar.
In addition to the parser generator itself, JavaCC provides other standard capabilities related to parser generation such as tree building (via a tool called JJTree included with JavaCC), actions, debugging, etc.
packages.debian.org /unstable/devel/javacc.html   (136 words)

  
 No Title
Run javacc on the grammar input file to generate a bunch of Java files that implement the parser and lexical analyzer (or token manager).
All non-terminals have equal status in a JavaCC generated parser, and hence one may parse with respect to any grammar non-terminal, as a specifc start symbol is not identified.
In JavaCC grammars, non-terminals are written and implemented (by JavaCC) as Java methods.
www.cs.usu.edu /~allanv/cs4700/javacc/javacc.html   (1232 words)

  
 Otaku, Cedric's weblog: ANTLR vs. JavaCC
Since I am fairly familiar with this family of tools, what I am looking for is pretty simple: a tutorial that will quickly fill me in on the syntax used to describe the lexer and the parser and how to invoke the tool.
First of all, JavaCC's home page doesn't make the documentation link very obvious.
Scroll to the bottom to find a few links, but even this doesn't turn out very useful pointers: FAQ, repository of grammars, installation and getting started (which actually only tells you how to install the software but not how to use it) and finally the complete documentation.
www.beust.com /weblog/archives/000145.html   (960 words)

  
 The parser generator JavaCC
javacc is a LL(k) parser generator for Java.
This section explains a javacc source with a number of small examples.
Calc* is developed in stages, it is supposed to demonstrate the important aspects of the parser generator, and it is patterned after examples by Chuck McManis and Sun which are delivered with javacc.
www.cs.rit.edu /~ats/java/html/skript/8_JavaCC.htmld   (1199 words)

  
 Notes
JavaCC is a lexer and parser generator for LL(k) grammars.
Also see the mini-tutorial on the JavaCC site for tips on writing lexer specifications from which JavaCC can generate efficient code.
JavaCC only works on LL(k) grammars, so left recursion must be removed.
www.technocage.com /~ray/notespage.jsp?pageName=javacc   (813 words)

  
 andrew cooke: practical javacc
javacc is a parser generator (LL(1), so it's top down directional, with the possibility of additional lookup to resolve conflicts).
jjtree comes with javacc and adds support for constructing a parse tree.
from the javacc distribution, but with the file name changed and the parse tree exposed.
www.acooke.org /andrew/writing/javacc.html   (422 words)

  
 Java, Objects, and Toolsin Compiler Construction
The tools should come in handy even if you are not planning to build a compiler next week.
JavaCC is a lexical analyzer and parser generator implemented in Java and targeted to Java.
JavaCC accepts an LL(n) grammar and actions -- expressed in a mixture of EBNF and Java -- and produces a scanner and a parser class with recursive descent parsing methods that match phrases over the grammar and execute the actions as the phrases are reduced.
www.cs.rit.edu /~ats/talks/cb-tools   (627 words)

  
 JavaCC -- Facts, Info, and Encyclopedia article   (Site not responding. Last check: 2007-10-19)
JavaCC (Java Compiler Compiler) is a (Click link for more info and facts about parser generator) parser generator for the (Click link for more info and facts about Java programming language) Java programming language.
In 1996, (Click link for more info and facts about Sun Microsystems) Sun Microsystems released a parser generator called Jack.
Metamata eventually became part of (Click link for more info and facts about WebGain) WebGain.
www.absoluteastronomy.com /encyclopedia/j/ja/javacc2.htm   (109 words)

Try your search on: Qwika (all wikis)

Factbites
  About us   |   Why use us?   |   Reviews   |   Press   |   Contact us  
Copyright © 2005-2007 www.factbites.com Usage implies agreement with terms.