Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Examples or tutorials for Perl grammars?

by tybalt89 (Prior)
on Jul 09, 2021 at 23:29 UTC ( #11134881=note: print w/replies, xml ) Need Help??


in reply to Examples or tutorials for Perl grammars?

A good start would be to write a few (short) example programs in your new language and show them here to give the rest of us an idea of what you want to do. Also save them for later as test cases (hint: to validate a language usually requires lots and lots of test cases :).

Also try to generate an EBNF for your language and show that here as well.

Parsers are not (usually) one huge regex, but a set of smaller regexes with surrounding code that call each other recursively (sort of, maybe, perhaps...).

  • Comment on Re: Examples or tutorials for Perl grammars?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2022-05-19 09:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (71 votes). Check out past polls.

    Notices?