Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^7: Writing a Programming Language in Perl

by chromatic (Archbishop)
on Oct 26, 2011 at 03:22 UTC ( [id://933782]=note: print w/replies, xml ) Need Help??


in reply to Re^6: Writing a Programming Language in Perl
in thread Writing a Programming Language in Perl

A compiler (or interpreter) has a few parts.

A parser converts a file full of source code into a data structure.

An interpreter traverses that data structure and executes the appropriate commands for each significant node in the structure.

A compiler transforms that data structure and emits something else. Perhaps this other is object code for a specific processor or perhaps it's binary code for a virtual machine or perhaps it's source code for another language entirely.

If you look at compiling and implementing languages this way, you already know the general technique. (everything is a compiler).


Improve your skills with Modern Perl: the free book.

  • Comment on Re^7: Writing a Programming Language in Perl

Replies are listed 'Best First'.
Re^8: Writing a Programming Language in Perl
by programmer99 (Novice) on Oct 26, 2011 at 09:39 UTC
    So what code is needed to start what I am trying to do?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://933782]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (2)
As of 2024-12-06 04:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which IDE have you been most impressed by?













    Results (39 votes). Check out past polls.