Programming Assignment TK3163

qq99515681 / 2024-07-05 / 原文

Programming Assignment TK3163

May 2024

The outcome of this assignment is a program that performs a syntactic and lexical check of a simple programming language that you simplified from the JAVA programming language. The program produced is a program generated through JFlex and CUP software.

This assignment has 6 activities:

  1. Upload JFlex and CUP software (10%)
  2. Running 2 example programs generated through JFlex generation (10%)
  3. Provide a lexical and syntactic description of the Simple Programming Language, by choosing at least 5 components from the lexical and syntactic JAVA Programming Language, such as statements or expressions,
  4. Variable Declaration.
  5. Selection (if-else)
  6. Looping (For)
  7. Printf(20%)
  8. Prepare JFlex specification to show Regular Expression for Token described in phase 3. (20%)
  9. Generate a JAVA program using JFlex and show the result of running the program. (20%)
  10. Generate a JAVA program that combines JFlex and CUP to check the syntax of Simple Programming Language. Show results of program runs (20%)