473,407 Members | 2,629 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

java parser

mickey0
142 100+
Hello,
I have to write a descendant recursive parser in Java. what do you suggest? Any links with java code example, please?


Regards,
Sep 16 '08 #1
7 2388
nav010
13
instead of java , I suggest u to use Vb which would make it easier for u.
Sep 17 '08 #2
JosAH
11,448 Expert 8TB
Hello,
I have to write a descendant recursive parser in Java. what do you suggest? Any links with java code example, please?
Goto the ANTLR site; ANTLR is a parser generator;
it generates LL(*) parsers (equivalent to recursive descent); on that site they've
got a couple of grammars available including a Java grammar (if I remember well).

kind regards,

Jos
Sep 17 '08 #3
Nepomuk
3,112 Expert 2GB
instead of java , I suggest u to use Vb which would make it easier for u.
That depends very much on what language the OP knows better. Of course, there are languages, that are designed for parser writing, but VB isn't one of them. (You may be right, if someone knows both equally well, VB might be the better choice, but that's not the point.) Also, in Java the parser will be platform independent, so it can be run on nearly any system.

Greetings,
Nepomuk
Sep 17 '08 #4
mickey0
142 100+
That depends very much on what language the OP knows better. Of course, there are languages, that are designed for parser writing, but VB isn't one of them. (You may be right, if someone knows both equally well, VB might be the better choice, but that's not the point.) Also, in Java the parser will be platform independent, so it can be run on nearly any system.

Greetings,
Nepomuk
Yes, I need to use Java but I'd like to see some "simple" implementations before.....I wonder if someone have linked some ".java" class around internet,,,
Sep 17 '08 #5
JosAH
11,448 Expert 8TB
Yes, I need to use Java but I'd like to see some "simple" implementations before.....I wonder if someone have linked some ".java" class around internet,,,
That ANTLR tool can generate a parser written in Java (one of the main target
languages). Beware though: it isn't "simple".

kind regards,

Jos
Sep 17 '08 #6
mickey0
142 100+
That ANTLR tool can generate a parser written in Java (one of the main target
languages). Beware though: it isn't "simple".

kind regards,

Jos
I used Coco/r but it creates a much complex parser......
Sep 17 '08 #7
JosAH
11,448 Expert 8TB
I used Coco/r but it creates a much complex parser......
Don't expect much simpler from ANTLR; the Java syntax is quite complex and
needs quite a complex parser to recognize it all.

kind regards,

Jos
Sep 17 '08 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: ptaz | last post by:
Hi I'm trying to run a web page but I get the following error. Ca anyone please tell me a solution to this. Thanks Ptaz HTTP Status 500 - type Exception report
13
by: Ajay | last post by:
hi! can you call a Python application from a Java program? does this require any additional package to be installed? thanks cheers
0
by: Juan Manuel Fernández Luna | last post by:
Can anybody help me? I'm desperate!!! I'm writing a program in Java to deal with xml files and when the file volume.xml (attached) is being parsed, the following exception occurs and I don't...
4
by: Dr. Laurence Leff | last post by:
I am writing a Java program to read in XML file, modify some elements slightly, and then write it out. That XML file is prepared in Docbook. It works fine, except that it is disturbing the...
1
by: Jens Mueller | last post by:
Hi there, this is a Java-XML Question, so I am not sure whether this is the right place, haven't found anything better .... I try to convert a Java object to XML via SAX and let the FOP...
1
by: David Van D | last post by:
Hi there, A few weeks until I begin my journey towards a degree in Computer Science at Canterbury University in New Zealand, Anyway the course tutors are going to be teaching us JAVA wth bluej...
12
by: Mark Fink | last post by:
I wrote a Jython class that inherits from a Java class and (thats the plan) overrides one method. Everything should stay the same. If I run this nothing happens whereas if I run the Java class it...
0
by: Nageshwararao | last post by:
i getting path of XML file and parsing it. Following is error i am getting. can any one help me. Exception in thread "main" java.lang.InternalError...
2
by: wolverine | last post by:
Hi, I recently read that every java .class file, is written in a specific binary format. http://java.sun.com/docs/books/jvms/second_edition/html/ClassFile.doc.html I just want to know whether...
5
blazedaces
by: blazedaces | last post by:
Ok, so you know my problem, java is running out of memory reading with SAX, the event-based xml parser intended more-so than DOM for extremely large files. I'll try to explain what I've been doing...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.