avril112113 / selenscript Goto Github PK
View Code? Open in Web Editor NEWSelenScript is a superset language of Lua.
License: MIT License
SelenScript is a superset language of Lua.
License: MIT License
I'm looking at lpeg
grammars and it's variants to generate an EBNF
understood by https://www.bottlecaps.de/rr/ui using a lpeg/re
varaint to do the transformation (see also here edubart/nelua-lang#190), bellow is the output for libs/repreprocess/grammar.relabel
.
Start ::=
chunk ( '!' . | ( . * ) )
chunk ::=
( statement + | )
statement ::=
( comment | if | block | include | define | source | #xA ) Cl
comment ::=
Sp * "//" ( '!' #xA . ) * | Sp * "/*" ( '!' "*/" . ) * "*/"
if ::=
( directive_if Cl chunk elseif ? ( directive_endif | ) )
elseif ::=
( directive_elseif Cl chunk ( Cl ( elseif | else ) ) ? )
else ::=
directive_else Cl chunk
block ::=
( directive_block_start Cl chunk ( directive_block_end | ) )
include ::=
( directive_include Cl )
define ::=
( directive_define Cl )
source ::=
'!' directive '!' "//" '!' "/*" ( '!' #xA . ) +
directive ::=
directive_if | directive_elseif | directive_else | directive_endif | directive_block_start | directive_block_end | directive_include | directive_define | directive_unknown
directive_if ::=
"#if" Sp + WORD ( Sp * "==" Sp * WORD | )
directive_elseif ::=
"#elseif" Sp + WORD ( Sp * "==" Sp * WORD | )
directive_else ::=
"#else"
directive_endif ::=
"#endif"
directive_block_start ::=
"#block" Sp + WORD
directive_block_end ::=
"#endblock"
directive_include ::=
"#include" Sp + WORD
directive_define ::=
"#define" Sp + WORD ( Sp + WORD | )
directive_unknown ::=
"#" ( WORD ( '!' #xA . ) * )
Cl ::=
Sp * #xA ?
Sp ::=
' ' | #x9 //%esc_t
WORD ::=
[a-zA-Z_] [a-zA-Z_0-9] *
HASH ::=
"#"
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.