DigitalDynamo
JCHJava Community | Help. Code. Learn.
•Created by DigitalDynamo on 5/6/2024 in #java-help
problem run and making .jj file
Phase 1:
Lexical Specification part (Regular Expressions of the Tokens )
[Be Creative when you design your language]
• Identify all the basic tokens of your language in Table 1:
o arithmetic operations: addition, subtraction, power ... etc (at least 5)
o relational operations: equality, less than...etc (at least 5)
o logical operators: AND, OR, NOT... etc (at least 4)
o punctuation Marks: colon, semi-colon,....etc (as you need in your language)
o Identifiers
o Digits (integer and float)
o White Spaces: one or more spaces, Tab and new line (it should be discarded)
o Keywords (should be words not symbols. For example: for selection statements
key words use IF or if or If or When )
o Comments
o You can add other tokens as you need.
Phase 2:
• Write the grammar for your language parser using BNF notation in a word file.
o Make sure that your Grammar free of problems such as left recursion and
choice conflicts.
o Your grammar should have these statements:
• Arithmetic statements
• Relational statements
• Logical statements
• Boolean statements
• Conditional statements: if-then, if-then-else
• Two iterative statements such as for, while or do while.
• Variable Declaration: String datatype, Integer datatype and another
datatype from your choice.
• Constants declaration.
• Two data structures of your choice such as list, array.
• Then Convert the grammar into JavaCC using (in jj file).
• The jj code should display “syntactically correct statement” for the correct input
statements. Otherwise, it displays an error message.
• Add some lexical actions to the definition of some tokens or syntactic actions to the
grammar part (at least any 5 actions).
this is my project i have write phase 1 code but I don't know the output pf this code
8 replies
JCHJava Community | Help. Code. Learn.
•Created by DigitalDynamo on 5/6/2024 in #java-help
problem run and making .jj file
okok
8 replies
JCHJava Community | Help. Code. Learn.
•Created by DigitalDynamo on 4/21/2024 in #java-help
java question
you mean in menu i have to print both company and product list ?
42 replies
JCHJava Community | Help. Code. Learn.
•Created by DigitalDynamo on 4/21/2024 in #java-help
java question
when i trying this menu.print () gives error
42 replies
JCHJava Community | Help. Code. Learn.
•Created by DigitalDynamo on 4/21/2024 in #java-help
java question
ok i will try this thing
42 replies
JCHJava Community | Help. Code. Learn.
•Created by DigitalDynamo on 4/21/2024 in #java-help
java question
cna you explain this with example ?
42 replies
JCHJava Community | Help. Code. Learn.
•Created by DigitalDynamo on 4/21/2024 in #java-help
java question
nope
42 replies
JCHJava Community | Help. Code. Learn.
•Created by DigitalDynamo on 4/21/2024 in #java-help
java question
42 replies
JCHJava Community | Help. Code. Learn.
•Created by DigitalDynamo on 4/21/2024 in #java-help
java question
42 replies
JCHJava Community | Help. Code. Learn.
•Created by DigitalDynamo on 4/21/2024 in #java-help
java question
42 replies
JCHJava Community | Help. Code. Learn.
•Created by DigitalDynamo on 4/21/2024 in #java-help
java question
but how user enter multiple emails ?
42 replies
JCHJava Community | Help. Code. Learn.
•Created by DigitalDynamo on 4/21/2024 in #java-help
java question
42 replies
JCHJava Community | Help. Code. Learn.
•Created by DigitalDynamo on 4/21/2024 in #java-help
java question
ok wait
42 replies
JCHJava Community | Help. Code. Learn.
•Created by DigitalDynamo on 4/21/2024 in #java-help
java question
can you define what i have do tell me the sequence how to achieve this whole project ?
42 replies
JCHJava Community | Help. Code. Learn.
•Created by DigitalDynamo on 4/21/2024 in #java-help
java question
so how can the company accept or reject the order ?
42 replies
JCHJava Community | Help. Code. Learn.
•Created by DigitalDynamo on 4/21/2024 in #java-help
java question
so how can i connect console base task to sql ?
42 replies
JCHJava Community | Help. Code. Learn.
•Created by DigitalDynamo on 4/21/2024 in #java-help
java question
means there is no requirement of making ui , it's console base task ?
42 replies
JCHJava Community | Help. Code. Learn.
•Created by DigitalDynamo on 4/21/2024 in #java-help
java question
yes i have done oop project
42 replies
JCHJava Community | Help. Code. Learn.
•Created by DigitalDynamo on 4/21/2024 in #java-help
java question
42 replies
JCHJava Community | Help. Code. Learn.
•Created by DigitalDynamo on 4/21/2024 in #java-help
java question
How can make without UI ?
42 replies