Hi Gurus,

I would like to find a generic command parser for ascii lines containing variable string and number elements. Preferably it should be written in C++ and it should be very lean, using a minimum written code length, hopefully relying on use of STL.

Does anyone have a finished parser or a link to one?

Alternatively feel free to suggest a solution technique for writing my own simple and lean command parser using STL. I suppose just a few lines of the right code using stringstream's would be enough for the simple commands to be parsed.

Included is a sample of the commands to be parsed.
They are really quite simple.

Thanks for any help.

Sincerely,
Chris

Code:
FA 0, 20000 C3                   
L  0,3FF0 ..\sample_files\Al01.hex          
L  4000,4000 ..\sample_files\Al01.hex 4000          
L  18000,8000 ..\sample_files\Al01.hex 18000
CC 0,3FF0 4000,4000 18000,7FFE 1FFFE                
HC 0,3FF0 ..\sample_files\Al01_flash.hex         
HA 4000,4000 ..\sample_files\Al01_flash.hex 4000         
HA 18000,8000 ..\sample_files\Al01_flash.hex 18000         
HE 0,0 ..\sample_files\Al01_flash.hex
Q