marat1961 / expression-language Goto Github PK
View Code? Open in Web Editor NEWThe Expression Language (EL) is a simple language designed to meet the needs of the presentation layer in applications.
License: GNU General Public License v3.0
The Expression Language (EL) is a simple language designed to meet the needs of the presentation layer in applications.
License: GNU General Public License v3.0
Looking for people using CocoR I found this project and I've done a experimental tool to convert CocoR grammars to a kind of EBNF understood by https://www.bottlecaps.de/rr/ui to generate railroad diagrams see bellow the converted and with some hand made changes of el.atg
to allow view it at https://www.bottlecaps.de/rr/ui the order of the rules could be changed to a better view of the railroad diagrams. Copy and paste the EBNF bellow on https://www.bottlecaps.de/rr/ui tab Edit Grammar then switch to the tab View Diagram.
Cheers !
//eol '+' lf '+' tab
El ::= CompositeExpression ( CompositeExpression )*
CompositeExpression ::= ( "${" Value '}' | "#{" Value '}' )
Value ::= Expression ( '?' Expression ':' Expression )?
Expression ::= SimpleExpression ( RelOp SimpleExpression )?
SimpleExpression ::= ( UnaryOp )? Term ( AddOp Term )*
Term ::= Factor ( MulOp Factor )*
Factor ::= Number | String | "true" | "false" | ( "null" | "nil" ) | ( '!' | "not" ) Factor | '(' Expression ')' | Designator ( Parameters )?
Designator ::= ( '.' Identifier | '[' Expression ']' )*
Parameters ::= '(' ( Expression ( ',' Expression )* )? ')'
Number ::= Int | HexInt | Float
AddOp ::= '+' | '-' | ( "or" | "||" )
UnaryOp ::= '-' | "empty"
MulOp ::= ( "and" | "&&" ) | '*' | '/' | "div" | ( '%' | "mod" )
RelOp ::= ( '>' | "gt" ) | ( '<' | "lt" ) | ( ">=" | "ge" ) | ( "<=" | "le" ) | ( '=' | "==" | "eq" ) | ( "!=" | "<>" | "ne" )
eol ::= '\r'
lf ::= '\n'
tab ::= '\t'
char ::= "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
letter ::= "_" '+' char
digit ::= "0123456789"
hexDigit ::= digit '+' "ABCDEF" '+' "abcdef"
noQuote ::= ANY '-' "'" '-' eol
noApos ::= ANY '-' '"' '-' eol
noBrackets ::= ANY '-' "${" '-' "#{"
apos ::= '"'
quote ::= "'"
Identifier ::= letter ( letter | digit )*
Int ::= digit ( digit )*
HexInt ::= '0' ( 'x' | 'X' ) hexDigit ( hexDigit )*
Float ::= digit ( digit )* '.' ( digit )* ( ( 'E' | 'e' ) ( '+' | '-' )? digit ( digit )* )?
String ::= ( '"' ( '\' '0' ( 'x' | 'X' ) hexDigit ( hexDigit )? | '\' ( 't' | 'b' | 'n' | 'r' | 'f' | "'" | '"' | '\' ) | noApos ) '"' ) | ( "'" ( '\' '0' ( 'x' | 'X' ) hexDigit ( hexDigit )? | "'" ( 't' | 'b' | 'n' | 'r' | 'f' | "'" | '"' | '\' ) | noQuote ) "'" )
congratulations on the analyzer
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.