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
cacheCalculations:0|1
Something like (operator)= values
a+=$b
parse:[var,datatype]
Moved #75
Bug occured when empty string is passed into InterpretLine
iterateFor[word a in {'Hello','World','Test'}]
out:a
endIterateFor
a++
b--
Should delete all variables of owner
a[$b]
a[b]
a[$b] = value
a[b] = value
Don´t seem to work
iterateFor[num a in $x]
out:a
endIterateFor
%alias int num%
%import test.hades%
import - pastes file
alias - replaces string
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
Prints all aliases
load:'fibrec.hades' as a
$a->fib:[6]
Prints:
8
8
$a->$foo
%alias for iterateFor%
%alias true false%
out:'true and false'
prints : false and false
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
'Hello' is 'Hello'
out:' case[$a smaller 10000]'
returns error
dtype:'Hello world'
returns NONE
a+=b
results in an exception
a as word closed = 'iterate.hades'
load:$a as b
with 'file' as fi
$fi->readAllLines:['fib.hades']
foo as word reachable = out:3+7
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
Something like:
1+6+rand:[100]
a[rand:10]
throws a StackOverflowException because it runs through the Calculation Validation first
Enable with:
debug:1
Use:
HadesDebugger.EventManager.OnInterrupted += (c) =>
{
return true;
};
Tab to enter or exit
$a = {'Hello world','Test'}
$a[0]
'I' + $i[0] + ' ' + $i[1]
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
a as num[*] closed = {1,2,3,4,5}
b as num[*] closed = a
Settings can be activated by setting writeSettings to true (in Interpreter.InterpretLine
)
iterateFor[word a in $fi->readAllLines:['fibrec.hades']]
out:a
endIterateFor
Prints exception because lines are assigned to variable incorrectly
task as t
a as num closed = 0
asLongAs [true]
out:'Hello world'+$a
endAsLongAs
endTask
startTask:t
endTask:t
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.