IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

compiler construction chat


IBM Mainframe Forums -> FAQ & Basics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10888
Location: italy

PostPosted: Fri Sep 30, 2011 11:53 pm
Reply with quote

Quote:
Thanks all I alwanted to be part of language developing team

unfortunately the chances are pretty slim, there aren' t too many companies dealing with compiler production

but you can always pursue that as an hobby

for example You might try to build Your own REXX interpreter on Your PC...

You might start with scanners and parser
books.google.com/books/about/Lex_yacc.html?id=YrzpxNYegEkC
or
books.google.com/books?id=3Sr1V5J9_qMC&source=gbs_similarbooks
for the successors

and then look at the sources of OPEN OBJECT REXX very good coding style

and You have the chance of learning a new programming language C
Back to top
View user's profile Send private message
Pandora-Box

Global Moderator


Joined: 07 Sep 2006
Posts: 1592
Location: Andromeda Galaxy

PostPosted: Sat Oct 01, 2011 11:00 pm
Reply with quote

Thanks again Enrico icon_smile.gif

With experts guidance like you ppl I got the courage to work on my goal icon_smile.gif

Lets see where I do stand say a month down the lane icon_smile.gif
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10888
Location: italy

PostPosted: Sat Oct 01, 2011 11:29 pm
Reply with quote

I forgot the must have the dragon book
both the first edition
www.amazon.com/Compilers-Principles-Techniques-Alfred-Aho/dp/0201100886
and the second one
www.amazon.com/Compilers-Principles-Techniques-Tools-2nd/dp/0321486811/ref=pd_sim_b7

let me know if You need more hints and suggestions

another very interesting article with a completely different approach
is Jack Crenshaw' s Let' s build a compiler, with a PASCAL working sample
it was available until a few months ago at compilers.iecc.com/crenshaw/
but the IECC idiots deleted every trace of it

if You want to get started on serious programming just drop the windows bullshit and install a good linux distro
the canditates are
ubuntu, probably the most friendly , You will have to add ( IIRC ) the development tools
debian, I had lots of issues with it and after a couple of attempt I dropped it
fedora, ( the one I feel most comfortable with ) when doing the almost-quick install it asks what overall environment You want
and choosing the software development environment it will install all You need
Back to top
View user's profile Send private message
Pandora-Box

Global Moderator


Joined: 07 Sep 2006
Posts: 1592
Location: Andromeda Galaxy

PostPosted: Sat Oct 01, 2011 11:32 pm
Reply with quote

Now I am lost icon_redface.gif

Sorry Enrico

Which should I start of with Assuming I have basic idea of C language?

If you could tell me the order to read or should I do parallel reads?
Back to top
View user's profile Send private message
Pandora-Box

Global Moderator


Joined: 07 Sep 2006
Posts: 1592
Location: Andromeda Galaxy

PostPosted: Sun Oct 02, 2011 12:01 am
Reply with quote

Thanks So I just wanna confirm

1.Install Linux

I have never installed an OS so fst I will try to acheieve step 1 and contact you icon_smile.gif

2.Read the Dragon book to know how to build a compiler and the LEX and YACC
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10888
Location: italy

PostPosted: Sun Oct 02, 2011 12:13 am
Reply with quote

OK... Linux first
to get the hand of it You might try a live cd distribution..
boot from a cd and use it for a while before installing it
IIRC look into UBUNTU it has some magic to install it under windows

do not bother yet with the dragon books,
they are terrific from a theorethical point of view, but You might loose the initial sprint if You start with them
they are not cheap also

I would start with the old lex and yacc downloading the sources of the examples from the o' reilly site here
shop.oreilly.com/product/9781565920002.do
and click on the Download Example Code
it will keep You busy for a while
after You have mastered the examples You will be ready for the next step

also googling for scanners parsers compiler construction will provide lot of reading material

here a good link for some theory
www.diku.dk/hjemmesider/ansatte/torbenm/Basics/

another one with code
www.personal.kent.edu/~rmuhamma/Compilers/compiler.html

the more You search the more You find icon_biggrin.gif
anyway it is a pity that quite a few good links have disappeared ( the targets )
Back to top
View user's profile Send private message
Pandora-Box

Global Moderator


Joined: 07 Sep 2006
Posts: 1592
Location: Andromeda Galaxy

PostPosted: Sun Oct 02, 2011 12:29 am
Reply with quote

I have googled and got the Crenshaw tutrial ==> Lets build a compile icon_biggrin.gif
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10888
Location: italy

PostPosted: Sun Oct 02, 2011 12:37 am
Reply with quote

which one!
the fouled up and almost unreadable I guess...
home.iae.nl/users/mhx/crenshaw/tiny.html icon_biggrin.gif

I wan' t able to find the original which described building step by step a tiny compiler using pascal
I remember downloading it a couple of years ago, but now has disappeared
found it again, icon_biggrin.gif
www.penguin.cz/~radek/book/lets_build_a_compiler.pdf
the original was in text format, so a cut and paste was enough to build and run the examples

here is another good one
foja.dcs.fmph.uniba.sk/kompilatory/docs/compiler.pdf

but probably it might be better to take the conversation somewhere else
Ill ' check which part of the forum might be the less disturbing for those not interested
Back to top
View user's profile Send private message
Pandora-Box

Global Moderator


Joined: 07 Sep 2006
Posts: 1592
Location: Andromeda Galaxy

PostPosted: Sun Oct 02, 2011 12:39 am
Reply with quote

Exactly :-) I got the fedora downloaded and its in iso format guess that a sort of cd kind
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10888
Location: italy

PostPosted: Sun Oct 02, 2011 12:50 am
Reply with quote

why not take a look here
www.ubuntu.com/download/ubuntu/windows-installer

it might be interesting to run it alongside windows
( if You are windows based and You do not want to clobber Your setup)

You might try to install fedora with a dual boot, but You will have to repartition Your disk
and doing it for the first time might lead to a disaster icon_biggrin.gif

I am running under VMware, but You have to pay for it
or You might download the VMware trial edition and test i for 1 month
and then decide

You might have issues if You are on win/XP 32 bits only 3GB of storage
but still Linux is not hungry for storage 1gb of virtualized storage is more than enough

on a 64bit system with more memory VMWARE is the most practical solution
both system running at the same time

after the Linux installation I recommend the installation of OOREXX

if You have a PC with a bit of horsepower You might get a heck of performance out of it

on my iMac quad core 16 GB I run mac osx Lion 2 linuxes and 1 MVS
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10888
Location: italy

PostPosted: Sun Oct 02, 2011 1:05 am
Reply with quote

what system are You running on Your PC,
and what is Your PC configuration

as far as ubuntu is concerned they suggest to install the 32 bit version

an I would suggest the definitely more stable 10.4 LTS ( long term support )
Back to top
View user's profile Send private message
Pandora-Box

Global Moderator


Joined: 07 Sep 2006
Posts: 1592
Location: Andromeda Galaxy

PostPosted: Sun Oct 02, 2011 1:16 am
Reply with quote

I got a hp laptop running on 64 bit windoes 7 and 4gb ram and 320 gb hd
Back to top
View user's profile Send private message
Pandora-Box

Global Moderator


Joined: 07 Sep 2006
Posts: 1592
Location: Andromeda Galaxy

PostPosted: Sun Oct 02, 2011 1:27 am
Reply with quote

Will that suffice for heavy duty ?
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10888
Location: italy

PostPosted: Sun Oct 02, 2011 1:29 am
Reply with quote

I would definitely give a try to VMware !
Code:
http://www.vmware.com/products/workstation/using.html


but also a dual boot wit a primary linux partition of 32 gb and a swap partition of 8 GB
would be a very nice setup

and after a while unless You are a fan of windoze games You will get rid of windows icon_biggrin.gif

vmware will be less painful if you need to reinstall
You will certainly be doing it at least a couple of times ..
to learn and have a properly setup system !

after You are done with the linux install say so
and I' ll tell You how to install ooRexx,
there are a couple of patches to be applied
but the oorexx developers did not care
Back to top
View user's profile Send private message
Pandora-Box

Global Moderator


Joined: 07 Sep 2006
Posts: 1592
Location: Andromeda Galaxy

PostPosted: Sun Oct 02, 2011 1:41 am
Reply with quote

sure enrico will do those home work and get back to you icon_smile.gif

Thanks for your unconditional support wish I treat you with lasangne (hope i spelled it right)
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10888
Location: italy

PostPosted: Sun Oct 02, 2011 1:44 am
Reply with quote

almost right... the correct spelling is lasagne icon_biggrin.gif
anyway I am not a fanatic food nationalist ...
( too many italians traveling, asking for spaghetti and complaining that they did not taste good )
whenever I travel I try to understand and appreciate the local food..
a few years ago when I went to Nepal for a climbing expedition I really enjoyed the Nepalese cuisine and the cheerfulness of the people
Back to top
View user's profile Send private message
Pandora-Box

Global Moderator


Joined: 07 Sep 2006
Posts: 1592
Location: Andromeda Galaxy

PostPosted: Sun Oct 02, 2011 9:18 am
Reply with quote

There is one Italian restaurant here i would die for its cuisine it may not be the taste as they do in Italy but my mind is registered to its taste


My charger got spoofed icon_evil.gif I gotto get a new one today when market is up
Back to top
View user's profile Send private message
Pandora-Box

Global Moderator


Joined: 07 Sep 2006
Posts: 1592
Location: Andromeda Galaxy

PostPosted: Sun Oct 02, 2011 11:26 pm
Reply with quote

Sending the first message from Ubuntu icon_smile.gif Its so coool!!!
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10888
Location: italy

PostPosted: Sun Oct 02, 2011 11:37 pm
Reply with quote

glad You made it icon_biggrin.gif
Back to top
View user's profile Send private message
Pandora-Box

Global Moderator


Joined: 07 Sep 2006
Posts: 1592
Location: Andromeda Galaxy

PostPosted: Sun Oct 02, 2011 11:47 pm
Reply with quote

So now how to write some simple Pascal codes here??
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10888
Location: italy

PostPosted: Mon Oct 03, 2011 12:19 am
Reply with quote

You will have to install pascal first,
You have two choices

gnu pascal at
Code:
http://www.gnu-pascal.de/gpc/h-index.html


free pascal at
Code:
http://www.freepascal.org/


I would go for the Free Pascal, more actively mantained
and IIRC it follows closely the rules of turbo pascal
Back to top
View user's profile Send private message
Pandora-Box

Global Moderator


Joined: 07 Sep 2006
Posts: 1592
Location: Andromeda Galaxy

PostPosted: Mon Oct 03, 2011 12:31 am
Reply with quote

I am in UBUNTU which option to be chosen for ubuntu on windows ??
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10888
Location: italy

PostPosted: Mon Oct 03, 2011 1:08 am
Reply with quote

when You are under linux(ubuntu) windows is out of the show
everything You need will be the linux stuff
Back to top
View user's profile Send private message
Pandora-Box

Global Moderator


Joined: 07 Sep 2006
Posts: 1592
Location: Andromeda Galaxy

PostPosted: Mon Oct 03, 2011 1:09 am
Reply with quote

Wrote a first program in pascal icon_smile.gif

Such a moment icon_biggrin.gif icon_biggrin.gif
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10888
Location: italy

PostPosted: Mon Oct 03, 2011 9:42 pm
Reply with quote

just disregard the ANTLR stuff

and here is a link with links to lots of interesting stuff
catalog.compilertools.net/
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> FAQ & Basics Goto page 1, 2  Next

 


Similar Topics
Topic Forum Replies
No new posts How I Found a Bug in a FORTRAN Compiler All Other Mainframe Topics 4
No new posts Compiler and run JCL for basic PL/I p... PL/I & Assembler 10
No new posts Pre-Compiler Bug with DSNH520I message? DB2 1
No new posts pre-compiler for program in an HFS DB2 0
No new posts Who can recomend or to know a PL1 com... DB2 4
Search our Forums:

Back to Top