238 Commits

Author SHA1 Message Date
cron
05da1be543 turtle/tlang: allow unary operators to assign to quotes, add more operators
`var -- is now possible
Added + - / % !
2021-08-28 23:12:29 -05:00
cron
e5f28d8469 turtle/tlang: make = assign to nearest defined
If identifier has never been assigned, assign it in current scope
If it has been assigned, reassign it at that scope to value
Needs a global assignment and local assignment, maybe rename = to set or something
2021-08-28 23:12:29 -05:00
cron
5c3df299a6 sapscaffold: allow place_node when buildable_to 2021-08-28 23:12:29 -05:00
cron
1a8f916fa7 clientmods/world: remove duplicate CSM 2021-08-28 23:12:29 -05:00
cron
bb55dcad38 df/inventory: remove odx restoration
this would happen too quick, since anticheat would see the wrong tool being used after mine
this would prevent blocks from being broken
2021-08-28 23:12:29 -05:00
cron
d4b2b38133 clientmods/inventory: fix duplicate CSMs 2021-08-28 23:12:29 -05:00
cron
5eddb0f02a sapscaffold: add small sapling scaffold CSM 2021-08-28 23:12:29 -05:00
cron
7e23013727 minetest.register_cheat: fix multiple definition 2021-08-28 23:12:29 -05:00
cron
0c0a8236e9 turtle/tlang: force beginning and end of string literals to match 2021-08-28 23:12:29 -05:00
cron
48da01beb5 turtle/tlang: add while 2021-08-28 23:12:29 -05:00
cron
8e757040bf turtle/tlang: make access() search for newest locals first, globals last 2021-08-28 23:12:29 -05:00
cron
ac9f18f6dd turtle/tlang: fix copying error with = builtin 2021-08-28 23:12:29 -05:00
cron
0f8dd9c7f3 turtle/tlang: add forever and some other builtins
With forever, break, and (basic) if for and while can be made.
2021-08-28 23:12:29 -05:00
cron
93881793cf turtle/tlang: add comments, fix strings
Strings support '' syntax now. They can also be started with ' and ended with " or vice versa, and there is no way to put a literal ' in yet.
2021-08-28 23:12:29 -05:00
cron
d791294319 turtle/tlang: add run builtin
This changes how code is executed a bit, code from the stack is popped to an execution stack before.
This makes global executed functions and anonymous ones identical.
Not super well tested as always :]
2021-08-28 23:12:29 -05:00
cron
73d9e30816 turtle/tlang: fix lexer whitespace issues
This fixes the final whitespace issue as well as numbers requiring a final whitespace.
Maps don't need surrounding whitespace anymore.
2021-08-28 23:12:29 -05:00
cron
d6abb183b6 Merge branch 'master' of repo.or.cz:waspsaliva
Replicate the following commit (with cherry-picked parents on both
sides):

    commit a7e6ce649310b47768ffc1f4c731a3b9a774dc22
    Merge: 8f5dbbb1b 7ad3089d3
    Author:     cron <example@example.local>
    AuthorDate: Sun Nov 1 17:38:38 2020 +0000
    Commit:     cron <example@example.local>
    CommitDate: Sun Nov 1 17:38:38 2020 +0000

	Merge branch 'master' of repo.or.cz:waspsaliva
2021-08-28 23:10:43 -05:00
cora
37efa169d1 removed df chatcommand fuckery 2021-08-28 23:03:45 -05:00
cora
f8d8947818 lol 2021-08-28 23:03:45 -05:00
cora
287de74e55 added missing ws cheats ... time spent meaningful ... ^ 2021-08-28 23:03:45 -05:00
cora
d2c4108607 autoeat: fixed stupid mistake 2021-08-28 23:03:45 -05:00
cora
6def65f31d autofly: fixed autoSprint to reset correctly 2021-08-28 23:03:45 -05:00
cora
7a757a8c6a autofly: removed image test 2021-08-28 23:03:45 -05:00
cora
1f1e7558b0 autoeat: added seperate setting for timed autoeat 2021-08-28 23:03:45 -05:00
cora
4ff2b8bdbb autoeat: set conditional eating interval to 5 mins 2021-08-28 23:03:45 -05:00
cora
aec3fb38f5 autoeat: timed eat when certain things are happening 2021-08-28 23:03:45 -05:00
cron
836e29e653 chatcommands: fix duplicate definition functions 2021-08-28 23:01:50 -05:00
cron
7f09824e89 turtle: add working tlang
Not very well tested, needs a better public API, not integrated with Minetest, ...
This is WAY bigger than a commit should be.
The next stages will be:
- unit tests
- API (allows it to be more than just a language for this project)
- integration with Minetest
2021-08-28 23:01:49 -05:00
cora
c9b11b7c73 add ws cheats to cheat.lua ... why, fleck, why ? :D 2021-08-28 23:01:49 -05:00
cora
aaffe05463 remove weird cheat def thingy 2021-08-28 23:01:49 -05:00
cron
2fc69991b0 turtle: some weird ideas before the turtle language is added 2021-08-28 23:01:49 -05:00
cora
472f99d81e invA: add more missing lua 2021-08-28 23:01:49 -05:00
cora
a452285e03 inventoryAction: add missing lua function 2021-08-28 23:01:49 -05:00
cora
aa693c1fbd merge dragonfire inventoryAction 2021-08-28 23:01:49 -05:00
cora
068252a8dd add random screenshot csm 2021-08-28 23:01:49 -05:00
cora
0e6e73ad43 csm-api: add take_screenshot() 2021-08-28 23:01:49 -05:00
cora
480789b6e6 removed autowarp from mods.conf 2021-08-28 23:01:49 -05:00
cora
b1b9f89be3 autotool: actually fix reset wield index lol 2021-08-28 23:01:49 -05:00
cora
a28240deb0 autotool: little fix 2021-08-28 23:01:49 -05:00
cora
10c6294fa8 autotool: reset old wield index when node dug 2021-08-28 23:01:49 -05:00
cora
7e082da0f7 autoeat: reset old wield idx after eating 2021-08-28 23:01:49 -05:00
cora
5d9d147444 autofly: more fixes 2021-08-28 23:01:49 -05:00
cora
d58ff5d50e cleak: real fix 2021-08-28 23:01:49 -05:00
cora
d6f3724f47 cleak: fix 2021-08-28 23:01:49 -05:00
cora
335b710a83 removed dupe csms, changed "Leak" to be a chatcommand 2021-08-28 23:01:49 -05:00
cora
b561de16b5 autofly: some fixes 2021-08-28 23:01:49 -05:00
cron
1e33e1bb5e hignore: add settings and logging 2021-08-28 23:01:49 -05:00
cron
b5d311f3e5 peek: remove debug log prints 2021-08-28 23:01:49 -05:00
cora
bee4d3d326 autofly: add normal autosprint; some gui fixes 2021-08-28 23:01:34 -05:00
cora
510f8da63f autofly: add AutoSprint 2021-08-28 23:01:34 -05:00