¡@

Home 

c# Programming Glossary: lineremaining

Poor man's “lexer” for C#

http://stackoverflow.com/questions/673113/poor-mans-lexer-for-c-sharp

readonly TokenDefinition tokenDefinitions private string lineRemaining public Lexer TextReader reader TokenDefinition tokenDefinitions.. tokenDefinitions nextLine private void nextLine do lineRemaining reader.ReadLine LineNumber Position 0 while lineRemaining null.. lineRemaining reader.ReadLine LineNumber Position 0 while lineRemaining null lineRemaining.Length 0 public bool Next if lineRemaining..