[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 292
  • Last Modified:

Find compiler Pascal open source

I want to find doc about how to developing Pascal language (compiler)
Who can help me ??
0
sonbinary
Asked:
sonbinary
5 Solutions
 
SoyYopCommented:
Have you tryed Lex and Yacc?

Does not generate EXE code, but works (compiles, don't link, but runs like VB, emulating)

Supports an array of languages. You can add more functions (I mean structures) to the language if you give yourselfe a time using the lexical grammar.

Works on many platforms.

A good reference is:

http://dinosaur.compilertools.net/

Luck,
0
 
WesleySaysHiCommented:
Go to the Free Pascal Home Page:
www.freepascal.org/
You can get information there and make free download. Following operating systems are supported: Linux, FreeBSD, NetBSD, Mac OS X/Darwin, Mac OS classic, DOS, Win32, OS/2, BeOS, SunOS (Solaris), Netware (libc and classic), QNX and Classic Amiga.

Checkout also the Free Pascal Webring:
o.webring.com/hub?ring=freepascal

More compilers and information about them you can find at:
http://www.thefreecountry.com/compilers/pascal.shtml

Regards,
Wesley
0
 
JesterTooCommented:
Here are some  page references to many open source pascal compilers, ides, interpreters, etc.

   http://dmoz.org/Computers/Programming/Languages/Pascal/Compilers/
   http://delphree.clexpert.com/pages/app_FREEPASCAL.htm
   http://www.freeprogrammingresources.com/pascal.html

HTH,
Lynn
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
Jaime OlivaresCommented:
You can download Borland Turbo Pascal for DOS from the Borland's Museum:
http://community.borland.com/article/0,1410,20803,00.html
0
 
sonbinaryAuthor Commented:
you know...I developing a smal compiler for pascal language and I have some problem with "record type", I don't know how to define it
I had syntax for some token like begin end,....case,....
I want to define syntax for record type, .....how to do that??
 
Main->Program Id Semi

Dec->Var Id_list Colon Type Semi

Id_list-> Id_list Comma Id|Id

Type->Simple|Id|Array Osqua Simple Csqua Of Type

Simple->Integer|Float|Num1 Dotdot Num1

Body->Begin Stmt_list End Dot

Stmt_list->Stmt_list  Stmt| Є

Stmt->(CaseStmt|AssignStmt|Exp) Semi

CaseStmt->Case Id Of BodyCase_list End

BodyCase_list->BodyCase_list BodyCase|BodyCase

BodyCase-> Num1 Colon Stmt_list

AssignStmt-> Id Set Exp

Exp-> Exp Op1 Term|Term

Term-> Term Op2 Factor|Factor Op3 Term|Factor

Factor->Id|Num1|Num2| Openbracket Exp Closebracket
0
 
fulscherCommented:
What a pitty - it seems that I lost my copy of Niklaus Wirth's compiler construction book. I think he explains the syntax quite well there.

Too bad. Here's a suggestion:

Type -> Simple|Id|Array Osqua Simple CSqua of Type|RecordType

RecordType -> "Record" DecList "End Record" Semi

DecList -> Dec [DecList]

Is it that what you need?

0
 
fulscherCommented:
I _think_ I've answered the Q...
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now