File: test/out-postop-py

Recommend this page to a friend!
  Classes of Nikos M.  >  Grammar Template  >  test/out-postop-py  >  Download  
File: test/out-postop-py
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Grammar Template
Template engine in PHP and other languages
Author: By
Last change:
Date: 7 months ago
Size: 482 bytes
 

 

Contents

Class file image Download
GrammarTemplate.VERSION = 3.0.0
GrammarTemplate POST-OP Mode

input template:
<:EXPR>:=[<term>:=[(<factor>:=[<globalNegation:NEG><lhs>[ <op:OP>? <rhs|NULL>]][ AND <factor>*])][ OR <term>*]]<expression:EXPR>
<expression2:EXPR>
<foo:FOO>?<foo:FOO>\?<foo:FOO> ?

output:
(1 = 1 AND 1 = 2 AND 1 = 3) OR (1 < 1 AND 1 < 2 AND 1 < 3) OR (1 > 1 AND 1 > 2 AND 1 > 3)
(2 = 1 AND 2 = 2 AND 2 = 3) OR (2 < 1 AND 2 < 2 AND 2 < 3) OR (2 > 1 AND 2 > 2 AND 2 > 3) OR (3 AND 3 <> NULL)
foofoo?foo ?

For more information send a message to info at phpclasses dot org.