GithubHelp home page GithubHelp logo

smarty-lexer's Introduction

Smarty 3 template engine

Lexer/Parser generator repository

The "smarty/smarty-lexer" package is used to generate the lexer and parser class files.

For Smarty versions >= 3.1.22 require "smarty/smarty-lexer": "~3.1" to get the latest version of the package

For Smarty versions <= 3.1.21 The "smarty/smarty-lexer" version must be identical with the target Smarty version

Use for example

"require": {
   "smarty/smarty-lexer": "3.1.18"
}

in your composer.json file to get the generator for Smarty 3.1.18.

To generate the template lexer and parser run: php Create_Template_Parser.php

It will create

  • smarty_internal_templatelexer.php from smarty_internal_templatelexer.plex
  • smarty_internal_templateparser.php from smarty_internal_templateparser.y

To generate the config file lexer and parser run: php Create_Config_Parser.php

It will create

  • smarty_internal_configfilelexer.php from smarty_internal_configfilelexer.plex
  • smarty_internal_configfileparser.php from smarty_internal_configfileparser.y

If the "smarty/smarty" package was installed by composer the generated lexer and parser files will be copied automatically into the distribution.

smarty-lexer's People

Contributors

uwetews avatar wisskid avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.