In Progress

Use Java or C to read pascal code and pass as token


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

While, etc..

- 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

Skills: C# Programming, Java

See more: line read token java, tokenize pascal code, want work answer, programming language learn apps, need develop java programming, need learn java programming, want learn java language, to code, symbol scanner programming, scanner programming, read real, programming symbol, programming simplified, programming question, programming practice, practice link

About the Employer:
( 5 reviews ) new york, United States

Project ID: #1301840

Awarded to:


hi, check pm, plz.

$200 USD in 7 days
(29 Reviews)

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.

$120 USD in 6 days
(10 Reviews)

Writing a Pascal compiler is a major task, but I have many years experience in Java programming and I am quite experienced writing parsers. Since there is more than one version of Pascal, I would require a grammar for More

$400 USD in 40 days
(11 Reviews)

Hi Friend I am so very interested in this project, though writing a PASCAL compiler is not an easy task. Since I have written parser many times for many difficult requirements, I am damn sure I have the capabilities More

$200 USD in 15 days
(3 Reviews)

Hello, I can handle your project. Please provide the exact grammar needed.

$100 USD in 20 days
(2 Reviews)

Dear sir, I can handle this project, I have strong skill in Pascal and Java. Please also read my PM.

$150 USD in 7 days
(1 Review)

Hello, Please see PMB. Thanks.

$180 USD in 7 days
(1 Review)

Hello, I'm experienced Java programmer, so I propose you console or simple GUI java application. In the past I wrote my programs on Pascal and assemble(ASM) languages and know them. I'm ready to start with the project. More

$110 USD in 14 days
(0 Reviews)