Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to do similar function as nextline() while using StreamTonenizer' next()  RSS feed

 
lixing1998
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,all
I want to use StreamTokenizer to pass tokens for a document. Inside its next(), I want to change it alittle bit, so when program read some specific character like '!', program will read next line instead of continue in reading this line.
Any way to do it?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!