Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Writing a Programming Language in Perl

by JavaFan (Canon)
on Oct 26, 2011 at 06:37 UTC ( [id://933798]=note: print w/replies, xml ) Need Help??


in reply to Writing a Programming Language in Perl

I'd start by first thinking what your new language should do. Is it going to be a domain specific language? Or a general purpose one? If the latter, what is its strength going to be? Is it going to be procedial? functional? OO? Block based? List based? Something else?
Second, make some trade-offs. Do you want to write a simple compiler/interpreter? (That probably means a simple syntax, not many features in your language). Does the compiler have to be run fast? Or do you want to give much power to the user of the language (resulting in a more complex compiler)?

Only then I'd worry about the implementation.

Oh, and my step 0 would be is to ponder about "if I really haven't a fucking clue on how to do that, is my disdain to read a book justified"?

  • Comment on Re: Writing a Programming Language in Perl

Replies are listed 'Best First'.
Re^2: Writing a Programming Language in Perl
by programmer99 (Novice) on Oct 26, 2011 at 09:37 UTC
    In a way, I have already thought this out. The issue I am having now how to get started with the actual code. Thanks so much!
      well, just look over Parse::Yapp, that would be your entry point.
      In a way, I have already thought this out. The issue I am having now how to get started with the actual code.
      So, your question really is, I know what I want to do, but I'm not telling you what it is, yet I ask from you how to get started?

      Is that how you ask for directions in an unknown city as well? You ask I want to go somewhere, in which direction do I go?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-11-06 16:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    chatterbot is...






    Results (32 votes). Check out past polls.