.net - How to parse continuous stream of text -


i have task write application controls openvpn using management interface, text stream.

i thought using lexer , parser generator lex , yacc job. since there asynchronous lines beginning ">", don't know if possible.

should parse text myself or can lex , yacc (actually, fslex , fsyacc, since should use f#) deal sort of thing?

thanks.

it's feasible. can best handle asynchronous lines overruling input of lexer , take asynchronous lines out @ earliest stage. should lines injected somehow steady stream of tokens or can/will handled separately? injecting steady stream going more difficult unless have easy detect points inject them.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -