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. a sample pascal code and 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). The scanner will >> read the codes and retrieve each characters and [place in tokens. Then save >> into linked List. >> >> so for example - your java 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.
>> Next step, using parser to get it from link list or array and convert that in machine language..The end result should be: Our code read PASCAL sample and change it to machne language (changing to machine language we can use third party apps) SO basically we are building PASCAL compiler using java or C++.
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