Solved

help needed with lexer

Posted on 2012-04-04
2
240 Views
Last Modified: 2013-11-24
Can someone help me understand the following code :
protected void parse(ParametersHeader parametersHeader)
	throws ParseException {
		this.lexer.SPorHT();
		while (lexer.lookAhead(0) == ';') {
			this.lexer.consume(1);
			//this.lexer.match(';');
			// eat white space
			this.lexer.SPorHT();
			NameValue nv = nameValue();
			parametersHeader.setParameter(nv);
			// eat white space
			this.lexer.SPorHT();		   
		}
	}

Open in new window


basically  the lexer contains a stringbuffer and if I pass sthg like :

<sas>; kkkk=hass; cas=aaaa

I only get <sas>; cas=aaaa and the middle part is just filtered out
0
Comment
Question by:bachra04
2 Comments
 
LVL 9

Accepted Solution

by:
damerval earned 500 total points
Comment Utility
Can you give us the class for "lexer"?
0
 
LVL 2

Author Closing Comment

by:bachra04
Comment Utility
The problem was solved
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now