Antlr « Development « Java I/O Q&A

Home
Java I/O Q&A
1.API
2.batch File
3.binary File
4.class file
5.CSV file
6.deploy
7.Development
8.directory
9.error
10.Excel File
11.File Attribute
12.jar
13.Log
14.Media File
15.nio
16.Operation
17.PDF file
18.PropertyFile
19.serialize
20.text file
21.Windows
22.XML file
23.Zip
Java I/O Q&A » Development » Antlr 

1. Why does Antlr not generate a lexer java file?    stackoverflow.com

Antlr3 does not generate Mylexer.java. I use AntlrWorks... when I have grammar starting like grammar mylexer; It does generate myParser.java It looks like a simple thing.. I wonder what may be the reason.. and the ...

2. Is there a way to specify java annotations in antlr grammar files?    stackoverflow.com

I'm looking for a way to include a few additional strings in output .java files generated from antlr. Is there a comprehensive listing of available directives? For example, given parser ...

3. ANTLR Serialization    stackoverflow.com

What is the best strategy of making Abstract Syntax Trees serializable to an XML File?

4. Using ANTLR to identify global variable declarations in a JavaScript file    stackoverflow.com

I've been using the ANTLR supplied ECMAScript grammar with the objective of identifying JavaScript global variables. An AST is produced and I'm now wondering what the based way of filtering out ...

5. Can I use an Antlr created lexer/parser to parse PDDL file and return data to a Java program?    stackoverflow.com

I am new to Antlr, but have used Flex/Bison before. I want to know if what I want to do using Antlr is possible. I want to parse an PDDL file using ...

6. Way to view a parsed file output?    stackoverflow.com

I am Vinod and am interested to use an ANTLR v3.3 for C parser generation in a Java project and generate the parsed tree in some viewable form. I got help ...

7. How to get everything till the end of file with ANTLR?    stackoverflow.com

I'm trying to create ANTLR grammar that will parse the following input:

@code 123 some arbitrary text
I would like to split it onto three tokens: @code, 123 and any text after the ...

8. writing antlr grammar for parsing java file    stackoverflow.com

i m new to antlrworks and m doing my final year project. could anyone please help me in how to write antlr grammar just for recognising a class in java "and ...

9. how to create token file from grammar file in antlr    stackoverflow.com

I am creating a DSL using antlr. Lexer and Parser are written in one grammar file(say layout.g). Tree grammar is written in another grammar file (say layoutTree.g). Now Tree parser is ...

10. java Main < inputfile does not work (Main is a java Class to test an ANTLR grammar)    stackoverflow.com

I am trying to test an ANTLR grammar with such a standard test rig

import org.antlr.runtime.*;

 class Main {
  public static void main(String[] args) throws Exception {
   ...

11. ANTLR failing parsing of java file on accented character    coderanch.com

Hi all, I am using ANTLR parser 2.7.5 and it fails when I have accented characters in the file. e.g. ch == '') || (ch == '') || (ch == '') || (ch == '') || (ch == '') || (ch == '') || (ch == '') || (ch == '')) The error I get is, parser exception: Test1.java:17:33: unexpected char: ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.