Hi this is what i tried using c++.but error occur.could you help me check with my problem?The example of string will be just same as above.
Why my yytext content are either the axample above when i print vre_pin.size() i got all the value with 4294967295?
Error: pos:4294967295
terminate called after throwing an instance of 'std::out_of_range'
what(): basic_string::substr
Abort
I am working with lex together. So when my yytext match the string when lex scan thru a file.
so yytext will read during run time.Therefore,I cannot direct assign string to yytext.
But i wonder why when i print out the position will appear out of range error.
Or should i do somethg like chomp off space,newline after the string just like perl.