Commit df2a1102 authored by Amzker's avatar Amzker 💬

mistaken run rm -r *

parent 1ea375da
#AUTHOR = Amzker [amzker@protonmail.com]
#project = Simple Matrix Calculator
impp os
oss("clear")
rprn "Solution"
a11 = 1
a12 = 2
a13 = 3
a21 = 2
a22 = 3
a23 = 1
a31 = 3
a32 = 1
a33 = 2
Ma = a11*(a22*a33 - a23*a32) - a12*(a21*a33 - a23*a31) + a13*(a21*a32 - a22*a31)
Aa11 = (a22*a33 - a23*a32)
Aa12 = -(a21*a33 - a23*a31)
Aa13 = (a21*a32 - a22*a31)
Aa21 = -(a21*a33 - a31*a23)
Aa22 = (a11*a33 - a31*a13)
Aa23 = -(a11*a32 - a31*a12)
Aa31 = (a12*a23 - a13*a22)
Aa32 = -(a11*a23 - a13*a21)
Aa33 = (a11*a22 - a21*a12)
Ainx = 1
NN1 = Aa11 * Ainx
NN2 = Aa21 * Ainx
NN3 = Aa31 * Ainx
NN4 = Aa12 * Ainx
NN5 = Aa22 * Ainx
NN6 = Aa32 * Ainx
NN7 = Aa13 * Ainx
NN8 = Aa23 * Ainx
NN9 = Aa33 * Ainx
rprn '================='
rprn 'Matrix Value'
rprn Ma
rprn '================='
rprn 'a11'
rprn NN1
rprn
rprn 'a12'
rprn NN2
rprn
rprn 'a13'
rprn NN3
rprn
rprn 'a21'
rprn NN4
rprn
rprn 'a22'
rprn NN5
rprn
rprn 'a23'
rprn NN6
rprn 'a31'
rprn NN7
rprn 'a32'
rprn NN8
rprn 'a33'
rprn NN9
impp os
impp rnd
n = [
"1",
"2",
"3",
"4",
"5",
]
cc=" rnd.choice(n)+rnd.choice(n)"
sn ="import"+cc+".png"
oss(sn)
cl="xclip -selection clipboard -t image/png "+cc+". png"
rprn("Screenshot copy on your clipboard😚")
oss(cl)
## Amzyo Scripting Language
- I decided to make own scripting language as per i preferred syntax
- basically i was just making simple module & syntax which helps me to do fast scripting
- currently Amzyo is still in infant level ( we just able to do +,-,*,√ & some prints)
**Example of Amzyo**
```
impp server #add server module
impp sqrt #adds Square root module
impp rnd #adds rnd moduel(randomize)
x = 12
y = 33
rprn(x + y) #output x+y in red colour
z = x + y
wprn(sqrt(z)) #output white colour
oss(pwd) #run pwd commond
bash ={
"user=$(whoami)",
"read -p ':>>>' usr",
" if $usr = 'amzker'",
" echo 'welxome'",
" fi ",
}
BB = bash
oss(BB)
```
I will push my source , but not now , when it became bit usable
# What You need to know before
- what are tokens
- what is syntax
- Lexar
- parser
- what is grammar
- how to parse
- how do i transform a NFA to a DFA
- what are LR, RR languages
- how to build an AST
🌮,
If you know this basics, then you can able to go forward .
1. oss = execute system shell
2. cd = change directory
3. sqrt = for square root
4. rnd = randomize
5. rndc = random choice from list
6. impp = imports modules
7. inpt = take input from user
8. def = define function / class
9. rprn = utput in red colour
10. wprn = output in white colour
11. log = store variable values //user inputs
Example :
```
impp os
impp rnd
impp sqrt
impp server
def shell():
oss("s+cript")
def server():
port = inpt("port: ")
sr ="server"+port
oss(sr)
list = [
"Amzker",
"Amzux",
"Amzyo",
"killer1998",
]
zx = inpt(":>>>")
log zx
if zx == "server";
server()
shell()
if zx == "list"
rndc(list)
shell()
```
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment