mirror of
https://github.com/Reuh/anselme.git
synced 2025-10-28 00:59:31 +00:00
Update documentation
This commit is contained in:
parent
dfe838a769
commit
fdcea38e5e
4 changed files with 105 additions and 2 deletions
11
test/tests/implicit multiplication.ans
Normal file
11
test/tests/implicit multiplication.ans
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
:x = 4
|
||||
|
||||
{2x} = 8
|
||||
|
||||
{(2+1)x} = 12
|
||||
|
||||
{2pi} = 2pi
|
||||
|
||||
{1/2x} = 0.125
|
||||
|
||||
{(1/2)x} = 2
|
||||
71
test/tests/implicit multiplication.lua
Normal file
71
test/tests/implicit multiplication.lua
Normal file
|
|
@ -0,0 +1,71 @@
|
|||
local _={}
|
||||
_[31]={}
|
||||
_[30]={}
|
||||
_[29]={}
|
||||
_[28]={}
|
||||
_[27]={}
|
||||
_[26]={}
|
||||
_[25]={}
|
||||
_[24]={}
|
||||
_[23]={}
|
||||
_[22]={}
|
||||
_[21]={text=" = 2",tags=_[31]}
|
||||
_[20]={text="2.0",tags=_[30]}
|
||||
_[19]={text=" = 0.125",tags=_[29]}
|
||||
_[18]={text="0.125",tags=_[28]}
|
||||
_[17]={text=" = 2pi",tags=_[27]}
|
||||
_[16]={text="6.2831853071796",tags=_[26]}
|
||||
_[15]={text=" = 12",tags=_[25]}
|
||||
_[14]={text="12",tags=_[24]}
|
||||
_[13]={text=" = 8",tags=_[23]}
|
||||
_[12]={text="8",tags=_[22]}
|
||||
_[11]={_[20],_[21]}
|
||||
_[10]={_[18],_[19]}
|
||||
_[9]={_[16],_[17]}
|
||||
_[8]={_[14],_[15]}
|
||||
_[7]={_[12],_[13]}
|
||||
_[6]={"return"}
|
||||
_[5]={"text",_[11]}
|
||||
_[4]={"text",_[10]}
|
||||
_[3]={"text",_[9]}
|
||||
_[2]={"text",_[8]}
|
||||
_[1]={"text",_[7]}
|
||||
return {_[1],_[2],_[3],_[4],_[5],_[6]}
|
||||
--[[
|
||||
{ "text", { {
|
||||
tags = {},
|
||||
text = "8"
|
||||
}, {
|
||||
tags = {},
|
||||
text = " = 8"
|
||||
} } }
|
||||
{ "text", { {
|
||||
tags = {},
|
||||
text = "12"
|
||||
}, {
|
||||
tags = {},
|
||||
text = " = 12"
|
||||
} } }
|
||||
{ "text", { {
|
||||
tags = {},
|
||||
text = "6.2831853071796"
|
||||
}, {
|
||||
tags = {},
|
||||
text = " = 2pi"
|
||||
} } }
|
||||
{ "text", { {
|
||||
tags = {},
|
||||
text = "0.125"
|
||||
}, {
|
||||
tags = {},
|
||||
text = " = 0.125"
|
||||
} } }
|
||||
{ "text", { {
|
||||
tags = {},
|
||||
text = "2.0"
|
||||
}, {
|
||||
tags = {},
|
||||
text = " = 2"
|
||||
} } }
|
||||
{ "return" }
|
||||
]]--
|
||||
Loading…
Add table
Add a link
Reference in a new issue