Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-08-2009, 04:03 PM
Member
 
Join Date: Jul 2009
Posts: 3
Rep Power: 0
magnum99 is on a distinguished road
Post Custom Text Parser
Hello,

I'm searching for a Text Parser, where I can give him my custom Strings/tags, for which he should search for. And then it should build some File Structure or something like that (like tree view).

Example:
input text: some text some text <myTableTag><myRowTag><myColumnTag>column1</myColumnTag></myRowTag></myTableTag>

and the file structure:
element 1: some text some text
element 2: Table-Object

my question is, if you know any parsers that can do this ?

Thank you for replies in advance
Bookmark Post in Technorati
Reply With Quote
  #2 (permalink)  
Old 07-09-2009, 07:31 AM
angryboy's Avatar
Senior Member
 
Join Date: Jan 2009
Location: Javaland
Posts: 742
Rep Power: 2
angryboy is on a distinguished road
Default
Try BPWJ (Building Parsers With Java) from sourceforge. Its the same name as the book, also by the same author, which explains how to use the api.

It's slow compare to using lexers, but really flexible.
__________________
USE CODE TAGS--> [CODE]...[/CODE]
Get NotePad++ (free)
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 07-09-2009, 09:06 AM
Member
 
Join Date: Jul 2009
Posts: 3
Rep Power: 0
magnum99 is on a distinguished road
Default
Thank you for your reply, I will try this out.
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 07-09-2009, 02:49 PM
Member
 
Join Date: Jul 2009
Posts: 6
Rep Power: 0
stevemilw is on a distinguished road
Default
bloody post count, why does it hjave to be 5
Bookmark Post in Technorati
Reply With Quote
  #5 (permalink)  
Old 07-11-2009, 01:15 AM
Senior Member
 
Join Date: Mar 2009
Posts: 392
Rep Power: 2
Singing Boyo is on a distinguished road
Default
Please do not post just to change your post count. It generates spam and is quite distracting.
__________________
If the above doesn't make sense to you, ignore it, but remember it - might be useful!
And if you just randomly taught yourself to program, well... you're just like me!
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Tags
parser, tags

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Text Adventure Command Parser Exercise - Trying to do it the OOP way. derrikc New To Java 0 07-07-2009 07:22 AM
[SOLVED] Text Parser karthik7974 New To Java 20 04-22-2008 11:18 AM
XML Parser samfuerte XML 1 07-14-2007 05:14 PM
Parser Peter Advanced Java 2 07-04-2007 08:08 AM
DKP Log Parser 1.4.1 JavaBean Java Announcements 0 06-25-2007 09:49 AM


All times are GMT +2. The time now is 07:23 AM.



VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org