2017 © Pedro Peláez
 

library compiler

[EXPERIMENT] PHP Base Compiler(Lexical Analyzer).

image

wandu/compiler

[EXPERIMENT] PHP Base Compiler(Lexical Analyzer).

  • Monday, October 31, 2016
  • by wan2land
  • Repository
  • 1 Watchers
  • 0 Stars
  • 5 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 18 Versions
  • 0 % Grown

The README.md

Wandu Compiler

Latest Stable Version Latest Unstable Version Total Downloads License, (*1)

[EXPERIMENT] PHP Base Compiler(Lexical Analyzer)., (*2)

Installation

composer require wandu/compiler

Useage

LexicalAnalyzer

Example., (*3)

$lexer = new \Wandu\Compiler\LexicalAnalyzer([
    '\\+' => function () {
        return 't_add';
    },
    '\\-' => function () {
        return 't_minus';
    },
    '\\*' => function () {
        return 't_multi';
    },
    '\\/' => function () {
        return 't_divide';
    },
    '\\=' => function () {
        return 't_equal';
    },
    '[1-9][0-9]*|0([0-7]+|(x|X)[0-9A-Fa-f]*)?' => function ($word) {
        return "t_number";
    },
    '\s' => null,
]);

$lexer->analyze('10 + 20 = 0')); // ['t_number', 't_add', 't_number', 't_equal', 't_number',]

References

  • Lexer : http://nikic.github.io/2011/10/23/Improving-lexing-performance-in-PHP.html

The Versions

31/10 2016

dev-master

9999999-dev

[EXPERIMENT] PHP Base Compiler(Lexical Analyzer).

  Sources   Download

MIT

The Requires

 

lexer compiler lex yacc wandu

25/10 2016

3.0.x-dev

3.0.9999999.9999999-dev

[EXPERIMENT] PHP Base Compiler(Lexical Analyzer).

  Sources   Download

MIT

The Requires

 

lexer compiler lex yacc wandu

25/10 2016

dev-develop

dev-develop

[EXPERIMENT] PHP Base Compiler(Lexical Analyzer).

  Sources   Download

MIT

The Requires

 

lexer compiler lex yacc wandu

25/10 2016

v3.0.3

3.0.3.0

[EXPERIMENT] PHP Base Compiler(Lexical Analyzer).

  Sources   Download

MIT

The Requires

 

lexer compiler lex yacc wandu

25/10 2016

v3.0.4

3.0.4.0

[EXPERIMENT] PHP Base Compiler(Lexical Analyzer).

  Sources   Download

MIT

The Requires

 

lexer compiler lex yacc wandu

14/07 2016

v3.0.0

3.0.0.0

PHP Base Compiler(Lexical Analyzer).

  Sources   Download

MIT

The Requires

 

lexer compiler lex yacc wandu

14/07 2016

v3.0.0-beta4

3.0.0.0-beta4

PHP Base Compiler(Lexical Analyzer).

  Sources   Download

MIT

The Requires

 

lexer compiler lex yacc wandu

14/07 2016

v3.0.0-beta5

3.0.0.0-beta5

PHP Base Compiler(Lexical Analyzer).

  Sources   Download

MIT

The Requires

 

lexer compiler lex yacc wandu

14/07 2016

v3.0.0-beta6

3.0.0.0-beta6

PHP Base Compiler(Lexical Analyzer).

  Sources   Download

MIT

The Requires

 

lexer compiler lex yacc wandu

14/07 2016

v3.0.1

3.0.1.0

PHP Base Compiler(Lexical Analyzer).

  Sources   Download

MIT

The Requires

 

lexer compiler lex yacc wandu

14/07 2016

v3.0.2

3.0.2.0

PHP Base Compiler(Lexical Analyzer).

  Sources   Download

MIT

The Requires

 

lexer compiler lex yacc wandu

12/05 2016

v3.0.0-alpha2

3.0.0.0-alpha2

PHP Base Compiler(Lexical Analyzer).

  Sources   Download

MIT

The Requires

 

lexer compiler lex yacc wandu

12/05 2016

v3.0.0-alpha3

3.0.0.0-alpha3

PHP Base Compiler(Lexical Analyzer).

  Sources   Download

MIT

The Requires

 

lexer compiler lex yacc wandu

12/05 2016

v3.0.0-beta1

3.0.0.0-beta1

PHP Base Compiler(Lexical Analyzer).

  Sources   Download

MIT

The Requires

 

lexer compiler lex yacc wandu

12/05 2016

v3.0.0-beta2

3.0.0.0-beta2

PHP Base Compiler(Lexical Analyzer).

  Sources   Download

MIT

The Requires

 

lexer compiler lex yacc wandu

12/05 2016

v3.0.0-beta3

3.0.0.0-beta3

PHP Base Compiler(Lexical Analyzer).

  Sources   Download

MIT

The Requires

 

lexer compiler lex yacc wandu

07/01 2016

v0.1.1

0.1.1.0

PHP Base Compiler.

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

The Development Requires

by Changwan Jun

lexer compiler wandu

03/01 2016

v0.1.0

0.1.0.0

PHP Base Compiler.

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

The Development Requires

by Changwan Jun

lexer compiler wandu