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: scanner code use read token, line read token java, tokenize pascal code, why you want to work here, why you want to work for us, why learn programming, why do you want to work here answer, why do you want to work here, why do you want to work for us answer, why do we need java, why do i want to work here, what programming language to learn for apps, what programming language to learn first, what programming language to learn, what is programming language, what is java and why do i need it, what is c# programming, what is c programming, what is a string in programming, what is a programming language, what is an array in programming, what i need to develop with java programming, what do you need to learn java programming, what can you do with java programming, want to practice c++ programming

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)