Async-Template
view release on metacpan or search on metacpan
parser/Parser.yp view on Meta::CPAN
#============================================================= -*-Perl-*-
#
# Parser.yp
#
# DESCRIPTION
# Definition of the parser grammar for the Template Toolkit language.
#
# This grammar teken ftom Template perl library and modified by Serguei
# Okladnikov to integrate asynchronous EVENT, ASYNC and AWAIT operators
#
# AUTHOR
# Andy Wardley <abw@wardley.org>
# Serguei Okladnikov <oklaspec@gmail.com> (EVENT/ASYNC/AWAIT and some more)
#
# HISTORY
# Totally re-written for version 2, based on Doug Steinwand's
# implementation which compiles templates to Perl code. The generated
# code is _considerably_ faster, more portable and easier to process.
#
# WARNINGS
# Expect 1 reduce/reduce conflict. This can safely be ignored.
# Now also expect 1 shift/reduce conflict, created by adding a rule
# to 'args' to allow assignments of the form 'foo.bar = baz'. It
# should be possible to fix the problem by rewriting some rules, but
# I'm loathed to hack it up too much right now. Maybe later.
#
# COPYRIGHT
# Copyright (C) 1996-2004 Andy Wardley. All Rights Reserved.
# Copyright (C) 1998-2004 Canon Research Centre Europe Ltd.
# Copyright (C) 2012-2020 Serguei Okladnikov
#
# This module is free software; you can redistribute it and/or
# modify it under the same terms as Perl itself.
#
#------------------------------------------------------------------------
#
# NOTE: this module is constructed from the parser/Grammar.pm.skel
# file by running the parser/yc script. You only need to do this if
# you have modified the grammar in the parser/Parser.yp file and need
# to-recompile it. See the README in the 'parser' directory for more
# information (sub-directory of the Template distribution).
#
#------------------------------------------------------------------------
#
# $Id$
#
#========================================================================
%right ASSIGN
%right '?' ':'
%left COMMA
%left AND OR
%left NOT
%left CAT
%left DOT
%left CMPOP
%left BINOP
%left '+'
%left '/'
%left DIV
%left MOD
%left TO
%%
#--------------------------------------------------------------------------
# START AND TOP-LEVEL RULES
#--------------------------------------------------------------------------
template: event_template { $factory->event_template( $_[1] ) }
( run in 1.639 second using v1.01-cache-2.11-cpan-39bf76dae61 )