Flex: How to define a term to be the first one at the beginning of a line(exclusively)
问题 I need some help regarding a problem I face in my flex code. My task: To write a flex code which recognizes the declaration part of a programming language, described below. Let a programming language PL. Its variable definition part is described as follows: At the beginning we have to start with the keyword "var". After writing this keyword we have to write the variable names(one or more) separated by commas ",". Then a colon ":" is inserted and after that we must write the variable type(say