bbuck / eleetscript Goto Github PK
View Code? Open in Web Editor NEWA ruby hosted scripting language, designed to add a scripting component on top or ruby applications.
A ruby hosted scripting language, designed to add a scripting component on top or ruby applications.
Example code:
CONST = "This is a test"
test do
COSNT
end
The above sample appears to be returning nil
instead of the expected value.
Doing something like:
false and println("hello")
Will print "hello" and then return false. Which is bad.
The property
feature isn't currently being tokenized or parsed.
When it's parsed it should create method definitions to get and set an instance variable of the same name as the property.
Something like:
Property:
PROPERTY IDENTIFIER { result = Nodes.new([DefMethodNode.new("#{val[1]}=", ["@#{val[1]}"], Nodes.new([])), DefMethodNode.new(val[1], [], Nodes.new([GetInstanceVarNode("@#{val[1]}")]))]) }
| PROPERTY IdentifierList
;
IdentifierList:
IDENTIFIER IDENTIFIER { result = Nodes.new([DefMethodNode.new("#{val[0]}=", ["@#{val[0]}"], Nodes.new([])), DefMethodNode.new(val[0], [], Nodes.new([GetInstanceVarNode("@#{val[0]}")])), DefMethodNode.new("#{val[1]}=", ["@#{val[1]}"], Nodes.new([])), DefMethodNode.new(val[1], [], Nodes.new([GetInstanceVarNode("@#{val[1]}")]))])
| IdentifierList IDENTIFIER { result = val[1].nodes.concat([DefMethodNode.new("#{val[1]}=", ["@#{val[1]}"], Nodes.new([])), DefMethodNode.new(val[1], [], Nodes.new([GetInstanceVarNode("@#{val[1]}")]))]) }
;
The return
statement is currently being tokenized but not parsed.
Namespaces weren't really implemented fully aside form a node. I need to add the ::
operator for Namespace access to make Namespaces useful.
Need to add next
to the lexer and parser for skipping executions of loop easily.
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.