CFGI (Context Free Grammar Interpreter) Automata theory

0. Project Title:

The project for the course is a CFGI (Context Free Grammar Interpreter). The CFGI take as input a CFG and a string to parse and gives an output whether the test string is either accepted or rejected in the following way:

1. Production Rule Input Step:

For each production rule, two parts need to be given as input. The left-hand nonterminal of each production and the right-hand side consisting of both terminals and nonterminials are input for each rule one at a time. Use ε to fill in as an empty text field corresponding to NULL symbol. Use | (left pipe symbol) for “OR”. Also make sure that the input is case-sensitive and whitespace is not ignored. So for the input, the following format is suggested to input each production rule one at a time for all production rules. Repeat the same process for each production rule.

+ : Click here to enter another production

2. Verification Step:

For each production rule entered, display it to verify. For example, you may want to display “S → NaBba is the rule you want to add?” to confirm. Also after all production rules are entered, you should list all rules of the grammar to confirm the final CFG.

3. Testing/Output Step:

In this step, you will input test strings one per line. An empty line will corresponds to the empty string. For each input string, the output should be either YES THE STRING IS ACCEPTED BY THE GRAMMAR or NO THE STRING IS NOT ACCEPTED BY THE GRAMMAR. You may consider using the following type of window to accept the test string and show the test result as output.

Project Implementation Requirements:

[login to view URL] CFG should have 15-20 rules with moderate complexity on the right hand side.

[login to view URL] at least 10 test cases for which 7 are correct strings and 3 are incorrect strings. For each test string, include a derivation tree to prove whether it is accepted or rejected.

[login to view URL] may choose to use any high level computer language of your choice. For example, you may use C++, Java, Java script, Mat Lab, Python or any combination of them.

[login to view URL] you get to borrow a part of your code from existing code developed by someone else, you must specify the source as reference. Unless you provide the reference, your code will be considered plagiarized and will result in a grade of 0 for the project. You cannot use other source for the entirety of your implementation, but you use up to 50%. Thus you must specify which parts you have borrowed and which parts you have done on your own.


Copy of source code with reference on how much is your own work.

Derivation tree for each testing string showing whether it is accepted or rejected.

Screen capture of your test output.

The above three should be compiled into one Word file to upload.

YouTube video capture of your presentation for maximum of 10 minutes. The link to YouTube needs to be submitted.

The project is due at 1PM(US CST) May 26th Sunday

Aptitudini: Computer Science

Vezi mai multe: context free grammar vs regular expression, context free grammar examples solved, context free language, context free grammar examples, how to find context free grammar for a language, context free grammar generator, context free grammar vs context sensitive grammar, non context free grammar, java context free grammar, context free grammar checker, context free grammar python, context free grammar in compiler design, context free grammar pdf, applications of context free grammar, context free grammar tutorial, convert context free grammar to regular expression, context free grammar code in c++, is java a context free grammar, application of context free grammar, context free grammar program in c

Despre angajator:
( 1 părere ) commerce, India

ID Proiect: #19770132

4 freelanceri licitează în medie 66$ pentru acest proiect


easy task , easy task , easy task , easy task , easy task , easy task , easy task , easy task , easy task , easy task , easy task , easy task , easy task , easy task , easy task , easy task , easy task , easy task , ea Mai multe

%bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD în 1 zi
(2 recenzii)

Hello there! I am a computer scientist with 5 years of experience in compiler construction. The pay is high because of the little time you have. I would use Python. I hope to hear from you soon!

%bids___i_sum_sub_35%%project_currencyDetails_sign_sub_36% USD în 2 zile
(2 recenzii)

Hello I am an experienced Academic Research paper writer. Education: I have done Masters Computer sciences and also completed Masters in English Literature. Experience: I am doing wo Mai multe

%bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD în 1 zi
(0 recenzii)
%bids___i_sum_sub_35%%project_currencyDetails_sign_sub_36% USD în 12 zile
(0 recenzii)