I want to write a C ++ program to parse an input file of the following form.
input $input1, $in2, $anotherinput, $a, $b, $x; output $out1, $out2, $k; $xyz = $a + $b + $x; $k = $xyz - $in2; ........ ........ ....... $out1 = $k + $b;
The input file can contain more than 10,000 lines. But most lines will have the form $A = $B + $C What will be the most efficient parsing algorithm to be used in terms of time complexity.
source share