INSTRUCTIONS
Each Group should develop a mini compiler software using JAVA that
would accept any string in the form of statement as used in
programming languages.
Please, take note of the following guidelines:
(a) The program should be able to accept any string and report
the correctness or
otherwise of each string.
(b) The program should ask the user for a string and check for
correctness.
(c) If the string is correct, the program should do the translation
by going through
all the 7 stages below.
(d) If the string is wrong, then it should report the errors and no
translation is done
in stages 1 to 7.
(e) The program should be tested with at least 10 different
strings.
(f) There should be one entry and one exit point in the
program.
(g) The output of the program should contain the following stages
of Compiler
Techniques:
Stages of Compiler Techniques:
Stage 1: Lexical Analysis
Stage 2: Syntax Analysis
Stage 3: Semantic Analysis
Stage 4: Intermediate Code Representation
Stage 5: Code Generation
Stage 6: Code Optimisation
Stage 7: Target Machine Code
the answer u gave me on answers is way off its not correct,theres
no use of a scanner in the program
can i please get this in 24 hours
INSTRUCTIONS Each Group should develop a mini compiler software using JAVA that would accept any string in the form of s
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
INSTRUCTIONS Each Group should develop a mini compiler software using JAVA that would accept any string in the form of s
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!