advice on writing parser programs

B

burchill

I am writing a program that will convert guitar tablature text files in
to html files.

The problem is that guitar tabs on the internet are slightly different
in format, is there any classes in the java api that help identify
strings ?.
 
J

John C. Bollinger

burchill said:
I am writing a program that will convert guitar tablature text files in
to html files.

The problem is that guitar tabs on the internet are slightly different
in format, is there any classes in the java api that help identify
strings ?.

String.equals()
String.startWith()
String.endsWith()
String.indexOf()
String.matches()

java.util.regex.Pattern
java.util.regex.Matcher

java.util.StringTokenizer

various java.util.text.Format implementations
Integer.valueOf(), etc.

and many more.


John Bollinger
(e-mail address removed)
 
C

Carl Howells

burchill said:
I am writing a program that will convert guitar tablature text files in
to html files.

The problem is that guitar tabs on the internet are slightly different
in format, is there any classes in the java api that help identify
strings ?.

For a very powerful way to write parsers, take a look at
parser-generating programs, like JavaCC.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,046
Latest member
Gavizuho

Latest Threads

Top