Categories
Go

Determine the set of tokens which a lexical analyzer would need to recognize

Learning Goal: I’m working on a go project and need support to help me learn.1. Determine the set of tokens which a lexical analyzer would need to recognize.2. Design and implement a lexical analyzer procedure to read a source program in the abovelanguage and print the next token in the input stream. If the token detected is a valuelesstoken, such as a keyword, then it is sufficient to print only the keyword. If it has a value,then both the token type and lexeme should be printed.3. You will be given several TinyGo programs with which to test your lexical analyzer. Thesewill be located on the class WWW page and will be of the form test1.go, test2.go, etc. Runyour lexical analyzer on each test program.Suggestion: Use the lex, flex, or JFlex tool to automatically construct a lexical analyzer forTinyGo from a set of regular expressions specifying tokens Note: Please refer the file
Requirements: Answer should be in word file.   |   .doc file

Categories
Go

Learning goal: i’m working on a go question and need support to help me learn.

Learning Goal: I’m working on a go question and need support to help me learn.
see attached photo for instructions.