1. Token specification: You must create a table of the JavaScript programming language tokens as follows TOKEN Description Pattern/Rule lexeme examples
Course Name : Compiler Construction and
Scanner /lexer
In this assignment, you will write a lexical analyzer for a one of the following JavaScript
programming language
1. Token specification:
You must create a table of the JavaScript programming language tokens as follows
TOKEN | Description | Pattern/Rule | lexeme examples |
2. Write a Lex specification file and use the Lex generator to construct a lexical analyzer for the
JavaScript programming language with the following lexical properties:
1. Identifiers.
2. Keywords.
3. Literals.
4. Operators.
5. Delimiters
3. Test the lexical analyzer using sample of source files from the JavaScript programming
language.
4. Write a Lex program to remove comments from the JavaScript language
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 1 images