Results 1 to 4 of 4
Thread: java tokenizer
- 02-06-2010, 03:13 PM #1
Member
- Join Date
- Feb 2010
- Posts
- 3
- Rep Power
- 0
java tokenizer
hi guys
so in my program i use a java tokenizer
but i have a problem while testingJava Code:StreamTokenizer st = new StreamTokenizer ( new BufferedInputStream (new FileInputStream (filePath))) ;
well with this i can only test the first line wich is not enough i wanna test all the fileJava Code:if(st.toString().equals("Token['+'], line 1") ) { token[j]="+"; token1[j]=2; j++; }
i need help:confused:
thank you
- 02-06-2010, 03:18 PM #2
Senior Member
- Join Date
- Dec 2009
- Location
- Belgrade, Serbia
- Posts
- 364
- Rep Power
- 4
What is this tokenizer supposed to do???
Please post some example :)
What is content of file?
What are delimiters?
What do you need in output?
- 02-06-2010, 03:40 PM #3
Member
- Join Date
- Feb 2010
- Posts
- 3
- Rep Power
- 0
this is the content of the file for now
now i've done the parser ofJava Code:(23+5)*((12*4)+3)$
E-->E+T|T
T-->T*F|F
E-->(E)|id
but if i write the "(23+5)*((12*4)+3)$" at the second line of the file it won't
work because of line1 in the test:)
- 02-06-2010, 06:41 PM #4
Member
- Join Date
- Feb 2010
- Posts
- 3
- Rep Power
- 0
Similar Threads
-
building a tokenizer
By Igor in forum New To JavaReplies: 2Last Post: 01-20-2010, 05:45 PM -
Manipulating String Tokenizer
By Bomber_Will in forum New To JavaReplies: 2Last Post: 04-19-2009, 11:54 PM -
string tokenizer
By twinytwo in forum New To JavaReplies: 2Last Post: 03-26-2009, 02:10 PM -
String Tokenizer And Arraya
By everlast88az in forum Advanced JavaReplies: 2Last Post: 11-06-2008, 11:20 PM -
Parsing or Tokenizer??
By hiklior in forum New To JavaReplies: 15Last Post: 05-28-2008, 02:20 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks