Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: Examples or tutorials for Perl grammars?

by LittleJack (Beadle)
on Jul 09, 2021 at 21:21 UTC ( [id://11134870]=note: print w/replies, xml ) Need Help??


in reply to Re: Examples or tutorials for Perl grammars?
in thread Examples or tutorials for Perl grammars?

What's an AST?

Replies are listed 'Best First'.
Re^3: Examples or tutorials for Perl grammars?
by choroba (Cardinal) on Jul 09, 2021 at 21:35 UTC
    Abstract Syntax Tree. That's the structure parsers usually return (but they don't have to, see e.g. my Marpa Enhanced Calculator where the parser directly calculates the expressions without actually building the tree).

    map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
Re^3: Examples or tutorials for Perl grammars?
by AnomalousMonk (Archbishop) on Jul 09, 2021 at 21:35 UTC

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (8)
As of 2024-03-28 12:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found