azer0s / hadeslang Goto Github PK
View Code? Open in Web Editor NEWThe Hades Programming Language
Home Page: https://hadeslang.gitbook.io/doc
License: MIT License
The Hades Programming Language
Home Page: https://hadeslang.gitbook.io/doc
License: MIT License
Tab to enter or exit
iterateFor[word a in {'Hello','World','Test'}]
out:a
endIterateFor
Something like:
1+6+rand:[100]
Something like (operator)= values
a+=$b
a+=b
results in an exception
Should delete all variables of owner
%alias true false%
out:'true and false'
prints : false and false
load:'fibrec.hades' as a
$a->fib:[6]
Prints:
8
8
$a->$foo
c as num closed = fib:[7]
out:c
func fib[num n]
case[($n is 0) or ($n is 1)]
put n
endcase
put fib:[$n -1] + fib:[$n-2]
endfunc
cacheCalculations:0|1
parse:[var,datatype]
Moved #75
Settings can be activated by setting writeSettings to true (in Interpreter.InterpretLine
)
Enable with:
debug:1
Use:
HadesDebugger.EventManager.OnInterrupted += (c) =>
{
return true;
};
Var values can be forced through the interpreter like so
a as word closed = 'out:b'
b as word closed = 'Hello world'
#a
Output will be Hello world
$a = {'Hello world','Test'}
$a[0]
a[rand:10]
throws a StackOverflowException because it runs through the Calculation Validation first
iterateFor[word a in $fi->readAllLines:['fibrec.hades']]
out:a
endIterateFor
Prints exception because lines are assigned to variable incorrectly
out:' case[$a smaller 10000]'
returns error
c as word closed = 'Hello world'
fib:[1,1]
func fib[num a, num b]
out:c
asLongAs[true]
out:a
out:b
a = $a + $b
b = $a + $b
case[$a bigger 10000]
put a
endCase
endAsLongAs
endfunc
Throws an exception because of out:c
%alias for iterateFor%
a[$b]
a[b]
a[$b] = value
a[b] = value
Don´t seem to work
foo as word reachable = out:3+7
a as num[*] closed = {1,2,3,4,5}
b as num[*] closed = a
dtype:'Hello world'
returns NONE
iterateFor[num a in $x]
out:a
endIterateFor
Bug occured when empty string is passed into InterpretLine
task as t
a as num closed = 0
asLongAs [true]
out:'Hello world'+$a
endAsLongAs
endTask
startTask:t
endTask:t
%alias int num%
%import test.hades%
import - pastes file
alias - replaces string
'I' + $i[0] + ' ' + $i[1]
Prints all aliases
a++
b--
with 'file' as fi
$fi->readAllLines:['fib.hades']
Idea:
Add counter for every function Dictionary<string(funcitonname), int (how many times it was accessed)>
Add number of counter to the access -> $"{FAccess}@{group[1]}{counter[group[1]]}"
Solution:
Guid for each function call
'Hello' is 'Hello'
a as word closed = 'iterate.hades'
load:$a as b
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.