advice on writing parser programs

Discussion in 'Java' started by burchill, Sep 6, 2004.

  1. burchill

    burchill Guest

    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 ?.

    --
    Eps
     
    burchill, Sep 6, 2004
    #1
    1. Advertising

  2. burchill wrote:

    > 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
     
    John C. Bollinger, Sep 6, 2004
    #2
    1. Advertising

  3. burchill

    Carl Howells Guest

    burchill wrote:
    > 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.
     
    Carl Howells, Sep 6, 2004
    #3
  4. Carl Howells wrote:

    > burchill wrote:
    >
    >> 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.


    Or ANTLR
     
    Peter Ashford, Sep 7, 2004
    #4
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    12
    Views:
    1,702
    Dave Thompson
    Jan 10, 2005
  2. Coca
    Replies:
    7
    Views:
    778
    Aidan Grey
    Aug 24, 2004
  3. Replies:
    18
    Views:
    662
    Dave Thompson
    Jan 10, 2005
  4. lone_eagle
    Replies:
    3
    Views:
    670
    psykeedelik
    May 26, 2009
  5. Casey Hawthorne
    Replies:
    14
    Views:
    468
Loading...

Share This Page