Using Java or C++ you need to code that reads sample file (line by line).
In that sample file it would be sample PASCAL code written line by line. So for example our this C++ or Java code has to read it line by line and save and pass as TOKEN. each string or characater as token.
Here are suggestions : First using java or C++, code for scanner (see link below). It reads line by line and tokenize.
The scanner will read the codes and retrieve each characters and place in tokens. Then save into linked List or array. So for example - your java or C++ code will work as scanner, read line by line for example 2*3=4.. and pass that value as token and then save in array or linked list.
Please see parts below:
1) As described above - Scanner to store all the tokens into some type of symbol tables
2) Parse based on the pascal grammar
3) Based on the Parsing, develop the assembly code.
Answer to your question
What is the machine language that you want as output? - Assembly Language
What third-party apps are you thinking of using for generating that
machine language? - I think ASM or MASM is fine.
Will we have to read all the features of Pascal, or will it be a
simplified version of the language?
Answer- Pascal is not a simple language.
We just need the Simplified Version. Simple IF, GOTO, While Loops, Do
- basically part 1 of code - use tokenizer to read code an dpass these toekns in array
part 2 - parse that in parsing..
I need to learn this skills this is why I want to see the real code so I can learn and practice. Please tell me the price in US dollors. Time is essence here.
Need commitment and someone who is very comfortable with this language and code
8 freelancers are bidding on average $183 for this job
Hello, I am ready to provide this project. I am very experienced in Java and this kind of projects. Please check my reviews. I rather get paid through escrow (Milestone) service. Best Regards.