Link to home
Start Free TrialLog in
Avatar of sonbinary
sonbinary

asked on

Find compiler Pascal open source

I want to find doc about how to developing Pascal language (compiler)
Who can help me ??
ASKER CERTIFIED SOLUTION
Avatar of SoyYop
SoyYop

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sonbinary
sonbinary

ASKER

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
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I _think_ I've answered the Q...