Commit Graph

609 Commits

Author SHA1 Message Date
Bruce Hill
7c488dd266 Fixed bitwise operators to work on Lua 5.2 and LuaJIT, and added tests.
This is the first case where precompiled code is now platform-dependent.
2018-07-30 14:26:55 -07:00
Bruce Hill
9a948874d0 Removed traceback function so debug library isn't needed. 2018-07-30 14:26:35 -07:00
Bruce Hill
dc0c940d65 Added bit library and support for checking Lua version and whether
LuaJIT is being used.
2018-07-30 14:26:28 -07:00
Bruce Hill
54906c0553 Fix for REPL not getting launched when nomsu -I lib is run. 2018-07-30 14:25:35 -07:00
Bruce Hill
fba035595d Need to make sure all the files get run so their tests are loaded. 2018-07-30 14:12:22 -07:00
Bruce Hill
2a12310b25 Switching hashes to use base64 instead of hex. 2018-07-30 14:11:45 -07:00
Bruce Hill
43e8da1780 Simplifying. 2018-07-30 13:54:40 -07:00
Bruce Hill
0d48b5add8 Added parens for correctness and methods for accessing bytes and making
uppercase.
2018-07-30 13:52:40 -07:00
Bruce Hill
aafce3a765 Fix for parsing empty files, adding hex number literals (0xdeadbeef),
and fix for long strings ending with an indented interpolation.
2018-07-30 13:47:40 -07:00
Bruce Hill
f6e9bdc1c0 Fixed a bug where if an indented string interpolation was at the end of
an indented text, the nomsu codegen would fail to put a "\n.." after it,
so it wouldn't parse as an iterpolation.
2018-07-26 16:00:12 -07:00
Bruce Hill
e7c3455d4f Recompiled. 2018-07-26 15:57:11 -07:00
Bruce Hill
b3c73c280e Fixed bug where Text was the first item in an index chain. 2018-07-26 15:56:59 -07:00
Bruce Hill
f434b6b167 Fix for -e strings not getting executed because Files.walk didn't
respect spoofing.
2018-07-26 14:29:41 -07:00
Bruce Hill
ed996ad1b6 Switching compile action to parse action for 3-way comparison. 2018-07-26 12:38:17 -07:00
Bruce Hill
a69555bc03 Updated version numbers. 2018-07-25 13:49:17 -07:00
Bruce Hill
fe47b7c2cb Removing debug print. 2018-07-25 13:46:47 -07:00
Bruce Hill
e491a5838a Fix for source being too long. 2018-07-24 20:11:14 -07:00
Bruce Hill
d7e297844c Fixed stdin handling. 2018-07-24 17:36:50 -07:00
Bruce Hill
f7a9d1fc6b Fixed example to be actually functional. 2018-07-24 17:27:13 -07:00
Bruce Hill
871a5b6706 More concise version requirements. 2018-07-24 17:20:24 -07:00
Bruce Hill
76de40cd45 Added link to Nomic wiki. 2018-07-24 17:18:52 -07:00
Bruce Hill
bf224aacf2 Updated luafilesystem urls to point to both JIT and non-JIT versions. 2018-07-24 17:17:16 -07:00
Bruce Hill
b1c0446a3c Updating file stuff for better compatibility with Lua 5.2 and fixing
some bugs. Also updated README to provide more compatibility info and
list Lua5.2+ as a requirement.
2018-07-24 16:43:56 -07:00
Bruce Hill
6014c5aa43 Removed debugging shim. 2018-07-24 16:42:21 -07:00
Bruce Hill
efdfdcd695 Switched to optimization level 1 by default (i.e. use precompiled nomsu
files).
2018-07-24 15:25:31 -07:00
Bruce Hill
b6c99c56a1 Updated package.nomsupath behavior to first search the installed
locations, *then* search the current directory. This makes the system `nomsu` run
properly, even if the local directory has a broken file that has the
same name as a nomsu file.
2018-07-24 15:09:55 -07:00
Bruce Hill
3cf97066be Cleaning up code to make use of newer API. 2018-07-24 14:07:25 -07:00
Bruce Hill
723eb9e1f1 Added parens around lambdas (% -> %), and removed them from 'result %'
correspondingly.
2018-07-24 13:39:04 -07:00
Bruce Hill
ca653cbb84 Added more file descriptions. 2018-07-23 15:56:59 -07:00
Bruce Hill
278b004d17 Added more file descriptions. 2018-07-23 15:54:27 -07:00
Bruce Hill
4c8a8a0fe1 Fixed action using (..) instead of ":" 2018-07-23 15:46:14 -07:00
Bruce Hill
765cc704d5 Renamed nomsu_tree -> syntax_tree, so anyone looking for syntax trees
knows where to look.
2018-07-23 15:29:03 -07:00
Bruce Hill
991d9994e9 Recompiled files. 2018-07-23 15:25:53 -07:00
Bruce Hill
0ee80c555d Fixing a bug in error handling. 2018-07-23 15:25:43 -07:00
Bruce Hill
09d797eddc Updating code to latest version. 2018-07-23 15:25:03 -07:00
Bruce Hill
3d7842ef73 Deduplicating code a bit. 2018-07-23 15:24:52 -07:00
Bruce Hill
7eabdbcc7d Removed 'use "core"' 2018-07-23 15:22:44 -07:00
Bruce Hill
0dbfdc810d Merge branch 'default_core' into working 2018-07-23 15:07:31 -07:00
Bruce Hill
468656b9ef Updating readme. 2018-07-23 15:06:49 -07:00
Bruce Hill
8c249a1af3 Added doc for --no-core 2018-07-23 14:55:01 -07:00
Bruce Hill
6e5d551071 Run 'use "core"' by default before running anything else, unless --no-core command line flag is used. 2018-07-23 14:54:05 -07:00
Bruce Hill
470a6fe7f9 Fixed blocks starting with extra newline when they start with a comment. 2018-07-23 14:41:30 -07:00
Bruce Hill
0d7bb7eb03 Cleaning up formatting. 2018-07-22 16:35:07 -07:00
Bruce Hill
d38020bc5a Actually removing the tests now that they're inline. 2018-07-22 16:33:11 -07:00
Bruce Hill
5224199fcf Switching makefile to use inline tests. 2018-07-22 16:32:16 -07:00
Bruce Hill
4c1f0aca7a Moving all the rest of the tests over to inline versions. 2018-07-22 16:30:49 -07:00
Bruce Hill
04d7edefa3 Adding more inline tests. 2018-07-22 16:13:33 -07:00
Bruce Hill
3e222b40ef Merging List/Dict codegen paths to reduce code duplication. 2018-07-22 15:59:45 -07:00
Bruce Hill
0d4f2e45bc Updated launcher script to use find istead of ls and grep, and to
use "$(...)" instead of eval "$(...)", as per best practice
recommendations.
2018-07-22 15:45:02 -07:00
Bruce Hill
addac10a47 Re-autoformatted everything. The main changes are: no longer adding a
newline after 1-line indented code inside blocks, and forcing files to
have a trailing newline. The trailing newline thing created a lot of
spurious changes.
2018-07-22 15:01:05 -07:00