Solved

help needed with lexer

Posted on 2012-04-04
2
246 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
ID: 37813206
Can you give us the class for "lexer"?
0
 
LVL 2

Author Closing Comment

by:bachra04
ID: 37876153
The problem was solved
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
This video teaches viewers about errors in exception handling.

809 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