Time complexity of parsing algorithms -


i want write c++ program parse input file of following form.

input $input1, $in2, $anotherinput, $a, $b, $x; output $out1, $out2, $k; $xyz = $a + $b + $x; $k = $xyz - $in2; ........ ........ ....... $out1 = $k + $b; 

input file can have more 10,000 lines. of lines of form $a = $b + $c. efficient parsing algorithm used in terms of time complexity.

go simplest algorithm. suggest recursive descent prasing.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Socket.connect doesn't throw exception in Android -

iphone - How do I keep MDScrollView from truncating my row headers and making my cells look bad? -