onyx.git
4 years agocleaning up more things
Brendan Hansen [Thu, 31 Dec 2020 04:22:15 +0000 (22:22 -0600)]
cleaning up more things

4 years agocleaning up directory structure
Brendan Hansen [Thu, 31 Dec 2020 04:18:32 +0000 (22:18 -0600)]
cleaning up directory structure

4 years agolaid out what examples need to be written
Brendan Hansen [Wed, 30 Dec 2020 22:52:39 +0000 (16:52 -0600)]
laid out what examples need to be written

4 years agoadded very verbose output option, '-VV'
Brendan Hansen [Wed, 30 Dec 2020 22:52:19 +0000 (16:52 -0600)]
added very verbose output option, '-VV'

4 years agosmall bugfix with field access with no type
Brendan Hansen [Wed, 30 Dec 2020 22:51:33 +0000 (16:51 -0600)]
small bugfix with field access with no type

4 years agocode cleanup with `use` on struct variables
Brendan Hansen [Wed, 30 Dec 2020 19:40:56 +0000 (13:40 -0600)]
code cleanup with `use` on struct variables

4 years agogetting rid of those fricken tabs
Brendan Hansen [Wed, 30 Dec 2020 19:18:59 +0000 (13:18 -0600)]
getting rid of those fricken tabs

4 years agodeleted old doc file
Brendan Hansen [Wed, 30 Dec 2020 17:57:50 +0000 (11:57 -0600)]
deleted old doc file

4 years agoupdated CHANGELOG
Brendan Hansen [Wed, 30 Dec 2020 16:26:14 +0000 (10:26 -0600)]
updated CHANGELOG

4 years agosmall bugfix with enum values being of the wrong type
Brendan Hansen [Wed, 30 Dec 2020 15:33:23 +0000 (09:33 -0600)]
small bugfix with enum values being of the wrong type

4 years agoupdated test case output
Brendan Hansen [Wed, 30 Dec 2020 13:48:17 +0000 (07:48 -0600)]
updated test case output

4 years agoadded more to struct_robustness; parsing bug fix
Brendan Hansen [Wed, 30 Dec 2020 13:47:36 +0000 (07:47 -0600)]
added more to struct_robustness; parsing bug fix

4 years agotiniest bug fix
Brendan Hansen [Wed, 30 Dec 2020 04:10:25 +0000 (22:10 -0600)]
tiniest bug fix

4 years agostructs are much better now, as far as I can tell
Brendan Hansen [Wed, 30 Dec 2020 04:06:00 +0000 (22:06 -0600)]
structs are much better now, as far as I can tell

4 years agoworking on making structs better as a whole
Brendan Hansen [Wed, 30 Dec 2020 03:34:32 +0000 (21:34 -0600)]
working on making structs better as a whole

4 years agoanother bugfix for block bindings
Brendan Hansen [Tue, 29 Dec 2020 21:12:33 +0000 (15:12 -0600)]
another bugfix for block bindings

4 years ago#solidify in polyproc fix; bindings don't require semicolons
Brendan Hansen [Tue, 29 Dec 2020 20:03:45 +0000 (14:03 -0600)]
#solidify in polyproc fix; bindings don't require semicolons

4 years agobugfixes with procedure level bindings
Brendan Hansen [Tue, 29 Dec 2020 19:45:08 +0000 (13:45 -0600)]
bugfixes with procedure level bindings

4 years ago'::' declarations in procedure scope are treated the same as file scoped
Brendan Hansen [Tue, 29 Dec 2020 18:23:21 +0000 (12:23 -0600)]
'::' declarations in procedure scope are treated the same as file scoped

4 years agoadded fixed arrays example
Brendan Hansen [Mon, 28 Dec 2020 23:22:01 +0000 (17:22 -0600)]
added fixed arrays example

4 years agosmall bugfix with comments at the start of a file
Brendan Hansen [Mon, 28 Dec 2020 23:21:50 +0000 (17:21 -0600)]
small bugfix with comments at the start of a file

4 years agobugfix with reducing comptime enum expressions
Brendan Hansen [Sun, 27 Dec 2020 23:01:35 +0000 (17:01 -0600)]
bugfix with reducing comptime enum expressions

4 years agosmall #solidify bugfix
Brendan Hansen [Sat, 26 Dec 2020 05:00:12 +0000 (23:00 -0600)]
small #solidify bugfix

4 years agostarted work on `#solidify`
Brendan Hansen [Fri, 25 Dec 2020 19:39:21 +0000 (13:39 -0600)]
started work on `#solidify`

4 years agoupdated CHANGELOG
Brendan Hansen [Thu, 24 Dec 2020 21:46:13 +0000 (15:46 -0600)]
updated CHANGELOG

4 years agomassive clean up of polymorphic procedure generation
Brendan Hansen [Thu, 24 Dec 2020 20:04:46 +0000 (14:04 -0600)]
massive clean up of polymorphic procedure generation

4 years agoadded 'map.update'
Brendan Hansen [Thu, 24 Dec 2020 19:59:02 +0000 (13:59 -0600)]
added 'map.update'

4 years agorefactored switch statements; cases can be ranges
Brendan Hansen [Wed, 23 Dec 2020 22:50:45 +0000 (16:50 -0600)]
refactored switch statements; cases can be ranges

4 years agomade range literals not turn into struct literals
Brendan Hansen [Wed, 23 Dec 2020 21:48:31 +0000 (15:48 -0600)]
made range literals not turn into struct literals

4 years agonumeric literals are now copied during cloning
Brendan Hansen [Wed, 23 Dec 2020 18:30:03 +0000 (12:30 -0600)]
numeric literals are now copied during cloning

4 years agobetter error message on mismatched function arguments
Brendan Hansen [Wed, 23 Dec 2020 18:28:02 +0000 (12:28 -0600)]
better error message on mismatched function arguments

4 years agoerror message bugfix; better top level parsing
Brendan Hansen [Wed, 23 Dec 2020 02:32:39 +0000 (20:32 -0600)]
error message bugfix; better top level parsing

4 years agostruct literals can be compile time known
Brendan Hansen [Wed, 23 Dec 2020 02:09:32 +0000 (20:09 -0600)]
struct literals can be compile time known

4 years agosmall bugfixes
Brendan Hansen [Tue, 22 Dec 2020 22:19:05 +0000 (16:19 -0600)]
small bugfixes

4 years agoincreased stack size; added array.copy; change arena allocator
Brendan Hansen [Tue, 22 Dec 2020 16:27:42 +0000 (10:27 -0600)]
increased stack size; added array.copy; change arena allocator

4 years agoenum values are compile time known
Brendan Hansen [Tue, 22 Dec 2020 04:21:45 +0000 (22:21 -0600)]
enum values are compile time known

4 years agoadded map.empty and string.compare
Brendan Hansen [Mon, 21 Dec 2020 18:16:27 +0000 (12:16 -0600)]
added map.empty and string.compare

4 years agobetter error reporting in many places
Brendan Hansen [Mon, 21 Dec 2020 02:16:57 +0000 (20:16 -0600)]
better error reporting in many places

4 years agofixed arena allocator; should have tested it
Brendan Hansen [Sun, 20 Dec 2020 00:32:58 +0000 (18:32 -0600)]
fixed arena allocator; should have tested it

4 years agoadded arena allocator; bug fixes
Brendan Hansen [Sun, 20 Dec 2020 00:18:54 +0000 (18:18 -0600)]
added arena allocator; bug fixes

4 years agoadded 'unique' names for structs and enums
Brendan Hansen [Fri, 18 Dec 2020 16:11:38 +0000 (10:11 -0600)]
added 'unique' names for structs and enums

4 years agoupdated structure of allocators in core libraries
Brendan Hansen [Fri, 18 Dec 2020 03:27:58 +0000 (21:27 -0600)]
updated structure of allocators in core libraries

4 years agoupdating some examples to use printf
Brendan Hansen [Fri, 18 Dec 2020 02:24:55 +0000 (20:24 -0600)]
updating some examples to use printf

4 years agoUpdate README.md
Brendan Hansen [Fri, 18 Dec 2020 00:34:17 +0000 (18:34 -0600)]
Update README.md

4 years agoUpdate README.md
Brendan Hansen [Fri, 18 Dec 2020 00:33:09 +0000 (18:33 -0600)]
Update README.md

4 years agoadded test case for array/struct robustness; small bugfix
Brendan Hansen [Thu, 17 Dec 2020 22:02:08 +0000 (16:02 -0600)]
added test case for array/struct robustness; small bugfix

4 years agoupdated CHANGELOG
Brendan Hansen [Thu, 17 Dec 2020 21:12:27 +0000 (15:12 -0600)]
updated CHANGELOG

4 years agoupdating documentation
Brendan Hansen [Thu, 17 Dec 2020 16:46:59 +0000 (10:46 -0600)]
updating documentation

4 years agoarray literals are now allowed in expressions; testing will be needed
Brendan Hansen [Thu, 17 Dec 2020 04:40:41 +0000 (22:40 -0600)]
array literals are now allowed in expressions; testing will be needed

4 years agochanged the fix for NASTY stack and local bug
Brendan Hansen [Wed, 16 Dec 2020 19:32:37 +0000 (13:32 -0600)]
changed the fix for NASTY stack and local bug

4 years agobug fix in array.remove
Brendan Hansen [Wed, 16 Dec 2020 19:32:08 +0000 (13:32 -0600)]
bug fix in array.remove

4 years agoadded more robustness to builder and array api
Brendan Hansen [Wed, 16 Dec 2020 18:17:27 +0000 (12:17 -0600)]
added more robustness to builder and array api

4 years agofixed a NASTY stack and local bug
Brendan Hansen [Wed, 16 Dec 2020 18:17:00 +0000 (12:17 -0600)]
fixed a NASTY stack and local bug

4 years agomoved intrinsics files to own folder;
Brendan Hansen [Wed, 16 Dec 2020 02:27:59 +0000 (20:27 -0600)]
moved intrinsics files to own folder;

4 years agoadded very basics of array literals; not very useful now
Brendan Hansen [Tue, 15 Dec 2020 23:21:20 +0000 (17:21 -0600)]
added very basics of array literals; not very useful now

4 years agocleanup in onyx.c
Brendan Hansen [Tue, 15 Dec 2020 21:08:01 +0000 (15:08 -0600)]
cleanup in onyx.c

4 years agoupdated fun visualization; added check for struct literals
Brendan Hansen [Tue, 15 Dec 2020 20:17:21 +0000 (14:17 -0600)]
updated fun visualization; added check for struct literals

4 years agolots of code refactoring; added #context_scope; struct literals are even better
Brendan Hansen [Tue, 15 Dec 2020 19:40:20 +0000 (13:40 -0600)]
lots of code refactoring; added #context_scope; struct literals are even better

4 years agoupdated CHANGELOG
Brendan Hansen [Tue, 15 Dec 2020 18:25:32 +0000 (12:25 -0600)]
updated CHANGELOG

4 years agoadded a check I didn't think I needed
Brendan Hansen [Tue, 15 Dec 2020 16:37:06 +0000 (10:37 -0600)]
added a check I didn't think I needed

4 years agopolyproc generation cleaned up; feels good
Brendan Hansen [Tue, 15 Dec 2020 16:11:48 +0000 (10:11 -0600)]
polyproc generation cleaned up; feels good

4 years agofixed heap resize bug; added to fun visualization
Brendan Hansen [Tue, 15 Dec 2020 15:28:25 +0000 (09:28 -0600)]
fixed heap resize bug; added to fun visualization

4 years agoadded fun visualization and fixed entity state tracking
Brendan Hansen [Tue, 15 Dec 2020 02:26:08 +0000 (20:26 -0600)]
added fun visualization and fixed entity state tracking

4 years agosmall changes in the checker
Brendan Hansen [Tue, 15 Dec 2020 01:55:01 +0000 (19:55 -0600)]
small changes in the checker

4 years agobetter error reporting for invalid binary operations
Brendan Hansen [Tue, 15 Dec 2020 01:32:13 +0000 (19:32 -0600)]
better error reporting for invalid binary operations

4 years agocan 'use' pointers to structures; cleanup
Brendan Hansen [Mon, 14 Dec 2020 21:47:52 +0000 (15:47 -0600)]
can 'use' pointers to structures; cleanup

4 years agofixed bug with polymorphic functions with 'use' statements
Brendan Hansen [Mon, 14 Dec 2020 20:14:00 +0000 (14:14 -0600)]
fixed bug with polymorphic functions with 'use' statements

4 years agofixed test case
Brendan Hansen [Mon, 14 Dec 2020 19:26:22 +0000 (13:26 -0600)]
fixed test case

4 years agoremoved old map data structures, in favor of generic map
Brendan Hansen [Mon, 14 Dec 2020 18:31:41 +0000 (12:31 -0600)]
removed old map data structures, in favor of generic map

4 years agobug fix with bitwise not unary operator in code generation
Brendan Hansen [Mon, 14 Dec 2020 17:46:39 +0000 (11:46 -0600)]
bug fix with bitwise not unary operator in code generation

4 years agoadded a warning if using an invalid key type
Brendan Hansen [Mon, 14 Dec 2020 17:04:51 +0000 (11:04 -0600)]
added a warning if using an invalid key type

4 years agoadded 'reader.read_word'
Brendan Hansen [Mon, 14 Dec 2020 16:45:34 +0000 (10:45 -0600)]
added 'reader.read_word'

4 years agosmall bug fixes and repo cleanup
Brendan Hansen [Mon, 14 Dec 2020 16:45:27 +0000 (10:45 -0600)]
small bug fixes and repo cleanup

4 years agodeprecated all mapping structures in favor of new 'Map(K, V)' in map.onyx
Brendan Hansen [Mon, 14 Dec 2020 16:44:46 +0000 (10:44 -0600)]
deprecated all mapping structures in favor of new 'Map(K, V)' in map.onyx

4 years agoadded stats printing with '--verbose' flag
Brendan Hansen [Sun, 13 Dec 2020 01:28:12 +0000 (19:28 -0600)]
added stats printing with '--verbose' flag

4 years agocleaning up old test code
Brendan Hansen [Sat, 12 Dec 2020 20:48:04 +0000 (14:48 -0600)]
cleaning up old test code

4 years agoupdated CHANGELOG
Brendan Hansen [Sat, 12 Dec 2020 20:38:09 +0000 (14:38 -0600)]
updated CHANGELOG

4 years agoupdated onyx.sublime-build to new CLI
Brendan Hansen [Sat, 12 Dec 2020 20:32:32 +0000 (14:32 -0600)]
updated onyx.sublime-build to new CLI

4 years agoadded 'abs' functions in math library
Brendan Hansen [Sat, 12 Dec 2020 14:31:57 +0000 (08:31 -0600)]
added 'abs' functions in math library

4 years agoupdated '--verbose' CLI flag
Brendan Hansen [Sat, 12 Dec 2020 04:49:52 +0000 (22:49 -0600)]
updated '--verbose' CLI flag

4 years agocleaning up code for CLI
Brendan Hansen [Sat, 12 Dec 2020 04:45:48 +0000 (22:45 -0600)]
cleaning up code for CLI

4 years agofield accesses only work on lvals now
Brendan Hansen [Sat, 12 Dec 2020 03:25:29 +0000 (21:25 -0600)]
field accesses only work on lvals now
This is always how it has worked, now a proper error is actually
reported.

4 years agouse statements are now more universal
Brendan Hansen [Fri, 11 Dec 2020 23:34:23 +0000 (17:34 -0600)]
use statements are now more universal

4 years agoforgot to add the important changes to the last commit
Brendan Hansen [Fri, 11 Dec 2020 23:06:42 +0000 (17:06 -0600)]
forgot to add the important changes to the last commit

4 years agomade struct literals more package friendly and fixed scratch allocation
Brendan Hansen [Fri, 11 Dec 2020 21:11:46 +0000 (15:11 -0600)]
made struct literals more package friendly and fixed scratch allocation
bugs

4 years agobugfix with foreign globals
Brendan Hansen [Fri, 11 Dec 2020 16:49:40 +0000 (10:49 -0600)]
bugfix with foreign globals

4 years agoswapped usage of 'str' and 'string'; broke many things
Brendan Hansen [Fri, 11 Dec 2020 14:19:49 +0000 (08:19 -0600)]
swapped usage of 'str' and 'string'; broke many things

4 years agoadded more to do
Brendan Hansen [Fri, 11 Dec 2020 01:03:35 +0000 (19:03 -0600)]
added more to do

4 years agostarted laying out what needs to be done
Brendan Hansen [Thu, 10 Dec 2020 23:07:42 +0000 (17:07 -0600)]
started laying out what needs to be done

4 years agosmall bugfix and updated CHANGELOG
Brendan Hansen [Wed, 9 Dec 2020 21:57:26 +0000 (15:57 -0600)]
small bugfix and updated CHANGELOG

4 years agoadded read_u64 and fold_slice
Brendan Hansen [Wed, 9 Dec 2020 14:59:46 +0000 (08:59 -0600)]
added read_u64 and fold_slice

4 years agoadded 'StringReader'; subpackage bugfix
Brendan Hansen [Wed, 9 Dec 2020 04:25:21 +0000 (22:25 -0600)]
added 'StringReader'; subpackage bugfix

4 years agofixed bug with field accesses
Brendan Hansen [Wed, 9 Dec 2020 00:02:20 +0000 (18:02 -0600)]
fixed bug with field accesses

4 years agomore bug fixes with numeric constants
Brendan Hansen [Tue, 8 Dec 2020 18:01:20 +0000 (12:01 -0600)]
more bug fixes with numeric constants

4 years agonasty bugfix when returning bools
Brendan Hansen [Tue, 8 Dec 2020 17:05:00 +0000 (11:05 -0600)]
nasty bugfix when returning bools
It used to mess up the stack and in unforgiving environments,
i.e. wasmtime or wasmer, it caused misaligned reads resulting
in undefined behaviour.

4 years agoadded str.read_chars
Brendan Hansen [Tue, 8 Dec 2020 14:06:20 +0000 (08:06 -0600)]
added str.read_chars

4 years agobugfixes with numeric literals
Brendan Hansen [Tue, 8 Dec 2020 02:22:42 +0000 (20:22 -0600)]
bugfixes with numeric literals

4 years agoMAJOR CHANGE: numeric literals are nice now
Brendan Hansen [Mon, 7 Dec 2020 23:55:24 +0000 (17:55 -0600)]
MAJOR CHANGE: numeric literals are nice now
This may break a lot of things. Still need to do extensive testing.

4 years agobugfix in wasi.onyx
Brendan Hansen [Mon, 7 Dec 2020 19:34:30 +0000 (13:34 -0600)]
bugfix in wasi.onyx

4 years agoadded StrMap hash table; additions to str library
Brendan Hansen [Mon, 7 Dec 2020 16:07:07 +0000 (10:07 -0600)]
added StrMap hash table; additions to str library