onyx.git
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

4 years agoupdated CHANGELOG
Brendan Hansen [Sun, 6 Dec 2020 22:34:36 +0000 (16:34 -0600)]
updated CHANGELOG

4 years agochanged the package system to allow for nested packages
Brendan Hansen [Sun, 6 Dec 2020 22:33:06 +0000 (16:33 -0600)]
changed the package system to allow for nested packages

4 years agostring library bugfixes
Brendan Hansen [Sun, 6 Dec 2020 04:29:40 +0000 (22:29 -0600)]
string library bugfixes

4 years agofixing angry bug
Brendan Hansen [Sat, 5 Dec 2020 21:36:21 +0000 (15:36 -0600)]
fixing angry bug

4 years agobugfixes from using during AOC
Brendan Hansen [Sat, 5 Dec 2020 19:17:53 +0000 (13:17 -0600)]
bugfixes from using during AOC

4 years agosmall bugfix with recursive types
Brendan Hansen [Thu, 3 Dec 2020 22:19:47 +0000 (16:19 -0600)]
small bugfix with recursive types

4 years agotesting a small change
Brendan Hansen [Thu, 5 Nov 2020 18:09:44 +0000 (12:09 -0600)]
testing a small change

4 years agobugfix with including folders
Brendan Hansen [Sat, 10 Oct 2020 20:59:07 +0000 (15:59 -0500)]
bugfix with including folders

4 years agoBIG CHANGES TO COMPILER ARCHITECTURE; using entity pumping system
Brendan Hansen [Sat, 10 Oct 2020 04:06:46 +0000 (23:06 -0500)]
BIG CHANGES TO COMPILER ARCHITECTURE; using entity pumping system

4 years agobugfixes and improvements to random
Brendan Hansen [Thu, 8 Oct 2020 13:36:52 +0000 (08:36 -0500)]
bugfixes and improvements to random

4 years agosmall updates to sublime syntax
Brendan Hansen [Sat, 3 Oct 2020 05:10:53 +0000 (00:10 -0500)]
small updates to sublime syntax

4 years agoadded auto casting on assignment and proper checking on boolean not
Brendan Hansen [Wed, 30 Sep 2020 03:19:26 +0000 (22:19 -0500)]
added auto casting on assignment and proper checking on boolean not

4 years agobugfixes with struct literals and core libraries
Brendan Hansen [Tue, 29 Sep 2020 03:38:03 +0000 (22:38 -0500)]
bugfixes with struct literals and core libraries

4 years agoupdated CHANGELOG and call site bugfix
Brendan Hansen [Mon, 28 Sep 2020 13:08:14 +0000 (08:08 -0500)]
updated CHANGELOG and call site bugfix

4 years agotesting with varargs
Brendan Hansen [Mon, 28 Sep 2020 02:22:16 +0000 (21:22 -0500)]
testing with varargs

4 years agoadded vararg_test.onyx
Brendan Hansen [Sun, 27 Sep 2020 04:39:13 +0000 (23:39 -0500)]
added vararg_test.onyx

4 years agoadded very basic implementation of printf
Brendan Hansen [Sat, 26 Sep 2020 21:34:52 +0000 (16:34 -0500)]
added very basic implementation of printf

4 years agobugfixes with varargs
Brendan Hansen [Sat, 26 Sep 2020 19:54:34 +0000 (14:54 -0500)]
bugfixes with varargs

4 years agocode cleanup with procedure calling; needs even more cleanup
Brendan Hansen [Sat, 26 Sep 2020 18:46:39 +0000 (13:46 -0500)]
code cleanup with procedure calling; needs even more cleanup

4 years agoadded completely variable type varargs
Brendan Hansen [Sat, 26 Sep 2020 02:21:24 +0000 (21:21 -0500)]
added completely variable type varargs

4 years agostarting to work on arbitrary varargs
Brendan Hansen [Fri, 25 Sep 2020 19:41:21 +0000 (14:41 -0500)]
starting to work on arbitrary varargs

4 years agoadded basics of timing the different stages of compilation
Brendan Hansen [Fri, 25 Sep 2020 03:51:55 +0000 (22:51 -0500)]
added basics of timing the different stages of compilation

4 years agoadded printing floats
Brendan Hansen [Wed, 23 Sep 2020 19:19:54 +0000 (14:19 -0500)]
added printing floats

4 years agoadded %f to bh_printf and fixed bug
Brendan Hansen [Wed, 23 Sep 2020 18:33:30 +0000 (13:33 -0500)]
added %f to bh_printf and fixed bug

4 years agoforgot to add astnodes.h
Brendan Hansen [Wed, 23 Sep 2020 17:47:05 +0000 (12:47 -0500)]
forgot to add astnodes.h

4 years agoadded 'use' statement for enums and variables of struct type
Brendan Hansen [Wed, 23 Sep 2020 14:26:53 +0000 (09:26 -0500)]
added 'use' statement for enums and variables of struct type

4 years agoadded data parameter to array_map
Brendan Hansen [Tue, 22 Sep 2020 20:32:07 +0000 (15:32 -0500)]
added data parameter to array_map

4 years agosmall bugfixes
Brendan Hansen [Tue, 22 Sep 2020 04:00:23 +0000 (23:00 -0500)]
small bugfixes

4 years agoadded math functions
Brendan Hansen [Mon, 21 Sep 2020 03:06:59 +0000 (22:06 -0500)]
added math functions

4 years agonasty bug fix with polymorphic structs destroying scope tree
Brendan Hansen [Sun, 20 Sep 2020 20:22:41 +0000 (15:22 -0500)]
nasty bug fix with polymorphic structs destroying scope tree

4 years agostarted working on a formal spec of the language
Brendan Hansen [Sun, 20 Sep 2020 03:42:03 +0000 (22:42 -0500)]
started working on a formal spec of the language

4 years agobugfix with struct literals as struct member default values
Brendan Hansen [Sun, 20 Sep 2020 03:06:26 +0000 (22:06 -0500)]
bugfix with struct literals as struct member default values

4 years agoadded coloring for proc definitions in vim
Brendan Hansen [Sun, 20 Sep 2020 02:21:12 +0000 (21:21 -0500)]
added coloring for proc definitions in vim

4 years agoupdate editor syntax definitions
Brendan Hansen [Sun, 20 Sep 2020 02:08:36 +0000 (21:08 -0500)]
update editor syntax definitions

4 years agoupdated CHANGELOG
Brendan Hansen [Sat, 19 Sep 2020 23:45:30 +0000 (18:45 -0500)]
updated CHANGELOG

4 years agoadded '~~' auto cast operator
Brendan Hansen [Sat, 19 Sep 2020 23:37:01 +0000 (18:37 -0500)]
added '~~' auto cast operator

4 years agoadded bitwise not operator
Brendan Hansen [Sat, 19 Sep 2020 12:52:12 +0000 (07:52 -0500)]
added bitwise not operator

4 years agochanged overloaded function syntax; () are required on procs now
Brendan Hansen [Fri, 18 Sep 2020 19:38:34 +0000 (14:38 -0500)]
changed overloaded function syntax; () are required on procs now

4 years agocode cleanup
Brendan Hansen [Fri, 18 Sep 2020 19:17:40 +0000 (14:17 -0500)]
code cleanup

4 years agobugfixes with structs by value
Brendan Hansen [Fri, 18 Sep 2020 17:03:10 +0000 (12:03 -0500)]
bugfixes with structs by value

4 years agoadded ability to pass complicated structs by value
Brendan Hansen [Fri, 18 Sep 2020 16:43:28 +0000 (11:43 -0500)]
added ability to pass complicated structs by value

4 years agofixed #24; ready for v0.0.3
Brendan Hansen [Fri, 18 Sep 2020 03:18:36 +0000 (22:18 -0500)]
fixed #24; ready for v0.0.3

4 years agofixed #19
Brendan Hansen [Fri, 18 Sep 2020 02:19:41 +0000 (21:19 -0500)]
fixed #19

4 years agocode cleanup
Brendan Hansen [Fri, 18 Sep 2020 02:01:56 +0000 (21:01 -0500)]
code cleanup

4 years agoadded #private_file; 'use package' is at file scope, not package scope
Brendan Hansen [Fri, 18 Sep 2020 00:44:55 +0000 (19:44 -0500)]
added #private_file; 'use package' is at file scope, not package scope

4 years agoupdated CHANGELOG
Brendan Hansen [Thu, 17 Sep 2020 19:43:36 +0000 (14:43 -0500)]
updated CHANGELOG

4 years agoadded alloc_slice; made bools comptime known
Brendan Hansen [Thu, 17 Sep 2020 19:42:10 +0000 (14:42 -0500)]
added alloc_slice; made bools comptime known

4 years agofixed alignment issue on struct members
Brendan Hansen [Thu, 17 Sep 2020 19:41:39 +0000 (14:41 -0500)]
fixed alignment issue on struct members

4 years agoadded println to stdio; code cleanup
Brendan Hansen [Thu, 17 Sep 2020 03:13:05 +0000 (22:13 -0500)]
added println to stdio; code cleanup

4 years agoadded test cases; bug fixes
Brendan Hansen [Wed, 16 Sep 2020 13:45:55 +0000 (08:45 -0500)]
added test cases; bug fixes

4 years agoworking on TCC with github actions
Brendan Hansen [Wed, 16 Sep 2020 03:00:06 +0000 (22:00 -0500)]
working on TCC with github actions

4 years agoUpdate onyx-build.yml
Brendan Hansen [Wed, 16 Sep 2020 02:54:43 +0000 (21:54 -0500)]
Update onyx-build.yml

Trying to get TCC working

4 years agostarted working on automated regression tests
Brendan Hansen [Wed, 16 Sep 2020 02:46:25 +0000 (21:46 -0500)]
started working on automated regression tests

4 years agoswitched to using TCC as the compiler compiler
Brendan Hansen [Wed, 16 Sep 2020 01:12:24 +0000 (20:12 -0500)]
switched to using TCC as the compiler compiler

4 years agoadded name to polymorphic structs so error messsages look better
Brendan Hansen [Tue, 15 Sep 2020 02:17:11 +0000 (21:17 -0500)]
added name to polymorphic structs so error messsages look better

4 years agofixed bug with polymorphic struct 'using'
Brendan Hansen [Mon, 14 Sep 2020 23:08:22 +0000 (18:08 -0500)]
fixed bug with polymorphic struct 'using'

4 years agoadded error message for using polymorphic structs
Brendan Hansen [Mon, 14 Sep 2020 22:56:34 +0000 (17:56 -0500)]
added error message for using polymorphic structs

4 years agobugfixes for polymorphic structs
Brendan Hansen [Mon, 14 Sep 2020 22:44:19 +0000 (17:44 -0500)]
bugfixes for polymorphic structs

4 years agoadded polymorphic structs; must testing will be needed
Brendan Hansen [Mon, 14 Sep 2020 20:47:26 +0000 (15:47 -0500)]
added polymorphic structs; must testing will be needed

4 years agoFixed #20
Brendan Hansen [Sat, 12 Sep 2020 18:36:46 +0000 (13:36 -0500)]
Fixed #20

4 years agoadded simd example; simd bugfixes
Brendan Hansen [Thu, 10 Sep 2020 18:50:46 +0000 (13:50 -0500)]
added simd example; simd bugfixes

4 years agofinished initial version of SIMD instructions
Brendan Hansen [Thu, 10 Sep 2020 18:29:57 +0000 (13:29 -0500)]
finished initial version of SIMD instructions

4 years agostarted working on SIMD functionality
Brendan Hansen [Thu, 10 Sep 2020 03:36:09 +0000 (22:36 -0500)]
started working on SIMD functionality

4 years agoadded 'simd' package with simd types
Brendan Hansen [Wed, 9 Sep 2020 13:30:25 +0000 (08:30 -0500)]
added 'simd' package with simd types

4 years agoMerge pull request #14 from brendanfh/add-license-1
Brendan Hansen [Wed, 9 Sep 2020 02:08:37 +0000 (21:08 -0500)]
Merge pull request #14 from brendanfh/add-license-1

Create LICENSE

4 years agoCreate LICENSE
Brendan Hansen [Wed, 9 Sep 2020 02:08:21 +0000 (21:08 -0500)]
Create LICENSE

4 years agoUpdate onyx-build.yml
Brendan Hansen [Wed, 9 Sep 2020 00:41:59 +0000 (19:41 -0500)]
Update onyx-build.yml

4 years agoUpdate onyx-build.yml
Brendan Hansen [Wed, 9 Sep 2020 00:40:06 +0000 (19:40 -0500)]
Update onyx-build.yml

4 years agoCreate onyx-build.yml
Brendan Hansen [Wed, 9 Sep 2020 00:39:02 +0000 (19:39 -0500)]
Create onyx-build.yml

4 years agovarious bug improvements
Brendan Hansen [Tue, 8 Sep 2020 21:44:31 +0000 (16:44 -0500)]
various bug improvements

4 years agoadded 'using' struct members
Brendan Hansen [Tue, 8 Sep 2020 13:23:47 +0000 (08:23 -0500)]
added 'using' struct members

4 years agoadded polymorphic varargs of a single type
Brendan Hansen [Tue, 8 Sep 2020 01:11:18 +0000 (20:11 -0500)]
added polymorphic varargs of a single type

4 years agobugfix for variadic arguments
Brendan Hansen [Mon, 7 Sep 2020 21:52:40 +0000 (16:52 -0500)]
bugfix for variadic arguments

4 years agoadded initial implementation of typed varargs
Brendan Hansen [Mon, 7 Sep 2020 21:47:57 +0000 (16:47 -0500)]
added initial implementation of typed varargs

4 years agoreduced number of foreign imports
Brendan Hansen [Sun, 6 Sep 2020 15:08:50 +0000 (10:08 -0500)]
reduced number of foreign imports

4 years agosmall bugfixes; started writing example programs with docs
Brendan Hansen [Sat, 5 Sep 2020 20:53:20 +0000 (15:53 -0500)]
small bugfixes; started writing example programs with docs

4 years agoadded some robustness and better errors
Brendan Hansen [Sat, 5 Sep 2020 14:11:07 +0000 (09:11 -0500)]
added some robustness and better errors

4 years agoadded for loops over fixed size arrays
Brendan Hansen [Sat, 5 Sep 2020 05:10:27 +0000 (00:10 -0500)]
added for loops over fixed size arrays

4 years agoadded iteration by pointer to for loops
Brendan Hansen [Sat, 5 Sep 2020 04:50:58 +0000 (23:50 -0500)]
added iteration by pointer to for loops