onyx.git
4 years agocleaned up assignment emission
Brendan Hansen [Mon, 25 Jan 2021 13:56:28 +0000 (07:56 -0600)]
cleaned up assignment emission

4 years agocleaned up storing of compound / simple types
Brendan Hansen [Mon, 25 Jan 2021 04:19:58 +0000 (22:19 -0600)]
cleaned up storing of compound / simple types

4 years agocleaned up struct storing
Brendan Hansen [Mon, 25 Jan 2021 03:51:05 +0000 (21:51 -0600)]
cleaned up struct storing

4 years agocleaned up range for loop generation
Brendan Hansen [Sun, 24 Jan 2021 21:07:56 +0000 (15:07 -0600)]
cleaned up range for loop generation

4 years agocleaned up wasm block generation
Brendan Hansen [Sun, 24 Jan 2021 20:46:11 +0000 (14:46 -0600)]
cleaned up wasm block generation

4 years agocleaned up global_wasm_module
Brendan Hansen [Sun, 24 Jan 2021 20:14:32 +0000 (14:14 -0600)]
cleaned up global_wasm_module

4 years agomade explicit types on defaulted struct members optional
Brendan Hansen [Sun, 24 Jan 2021 17:32:44 +0000 (11:32 -0600)]
made explicit types on defaulted struct members optional
there are bugs if you 'use' a structure with this though.

4 years agosmall bugfixes with error message production
Brendan Hansen [Sun, 24 Jan 2021 05:56:07 +0000 (23:56 -0600)]
small bugfixes with error message production

4 years agoallow for 'sizeof' in array size; simplified binary reader
Brendan Hansen [Sat, 23 Jan 2021 16:32:48 +0000 (10:32 -0600)]
allow for 'sizeof' in array size; simplified binary reader

4 years agoAdded binary stream reader and writer
Brendan Hansen [Fri, 22 Jan 2021 22:07:22 +0000 (16:07 -0600)]
Added binary stream reader and writer

4 years agomade the 'proc' keyword optional in procedure types
Brendan Hansen [Fri, 22 Jan 2021 15:46:16 +0000 (09:46 -0600)]
made the 'proc' keyword optional in procedure types

4 years agobetter floating point printing
Brendan Hansen [Fri, 22 Jan 2021 04:29:42 +0000 (22:29 -0600)]
better floating point printing

4 years agoimprovements to WASI files; '--print-function-mappings' flag
Brendan Hansen [Thu, 21 Jan 2021 19:45:10 +0000 (13:45 -0600)]
improvements to WASI files; '--print-function-mappings' flag

4 years agoadded logging allocator; `proc` is even more optional
Brendan Hansen [Thu, 21 Jan 2021 14:17:06 +0000 (08:17 -0600)]
added logging allocator; `proc` is even more optional

4 years agofor loops can iterate over integers as a shorthand for starting from 0
Brendan Hansen [Thu, 21 Jan 2021 04:40:21 +0000 (22:40 -0600)]
for loops can iterate over integers as a shorthand for starting from 0

4 years agobetter fix for sublime syntax
Brendan Hansen [Thu, 21 Jan 2021 02:16:00 +0000 (20:16 -0600)]
better fix for sublime syntax

4 years agoupdated sublime syntax for optional proc keyword
Brendan Hansen [Thu, 21 Jan 2021 02:02:49 +0000 (20:02 -0600)]
updated sublime syntax for optional proc keyword

4 years agorealized tokens should not be arena allocated because they need to be in linear memory
Brendan Hansen [Thu, 21 Jan 2021 01:41:44 +0000 (19:41 -0600)]
realized tokens should not be arena allocated because they need to be in linear memory

4 years agofixed math.pow with negatives causing infinite loops
Brendan Hansen [Thu, 21 Jan 2021 01:19:58 +0000 (19:19 -0600)]
fixed math.pow with negatives causing infinite loops

4 years agomade 'proc' keyword optional in certain cases; bug fixes
Brendan Hansen [Thu, 21 Jan 2021 00:56:15 +0000 (18:56 -0600)]
made 'proc' keyword optional in certain cases; bug fixes

4 years agohopefully fixed bug with github actions printing lots of crap
Brendan Hansen [Wed, 20 Jan 2021 20:27:07 +0000 (14:27 -0600)]
hopefully fixed bug with github actions printing lots of crap

4 years agomajor code cleanup; removed old structures that didn't need to exist.
Brendan Hansen [Wed, 20 Jan 2021 19:57:02 +0000 (13:57 -0600)]
major code cleanup; removed old structures that didn't need to exist.
Everything is now part of a global "Context" that everything has access to.

4 years agofixed a small alignment issue that could have been impacting performance
Brendan Hansen [Tue, 19 Jan 2021 22:22:16 +0000 (16:22 -0600)]
fixed a small alignment issue that could have been impacting performance

4 years agoupdating documentation
Brendan Hansen [Tue, 19 Jan 2021 14:53:18 +0000 (08:53 -0600)]
updating documentation

4 years agochanged sublime text highlighting to make polymorphic vars more visible
Brendan Hansen [Tue, 19 Jan 2021 03:12:54 +0000 (21:12 -0600)]
changed sublime text highlighting to make polymorphic vars more visible

4 years agobug fix with solidify directives
Brendan Hansen [Tue, 19 Jan 2021 02:58:35 +0000 (20:58 -0600)]
bug fix with solidify directives

4 years agocode cleanup and documenting polymorphism
Brendan Hansen [Mon, 18 Jan 2021 23:44:17 +0000 (17:44 -0600)]
code cleanup and documenting polymorphism

4 years agosmall cleanup of the new compile-time parameters
Brendan Hansen [Mon, 18 Jan 2021 01:55:38 +0000 (19:55 -0600)]
small cleanup of the new compile-time parameters

4 years agoadd little bit more safety when using types in expressions
Brendan Hansen [Sat, 16 Jan 2021 19:29:24 +0000 (13:29 -0600)]
add little bit more safety when using types in expressions

4 years agobetter and safer error reporting when using type expression in normal expressions
Brendan Hansen [Sat, 16 Jan 2021 19:23:52 +0000 (13:23 -0600)]
better and safer error reporting when using type expression in normal expressions

4 years agovery hacky implementation of baked compile-time procedures
Brendan Hansen [Sat, 16 Jan 2021 18:52:52 +0000 (12:52 -0600)]
very hacky implementation of baked compile-time procedures

4 years agobetter error reporting for polymorphic procedures
Brendan Hansen [Sat, 16 Jan 2021 17:15:08 +0000 (11:15 -0600)]
better error reporting for polymorphic procedures

4 years agoadded more examples
Brendan Hansen [Sat, 16 Jan 2021 02:15:38 +0000 (20:15 -0600)]
added more examples

4 years agobug fixes with making pointers 8 bytes in size on WASI
Brendan Hansen [Fri, 15 Jan 2021 21:11:53 +0000 (15:11 -0600)]
bug fixes with making pointers 8 bytes in size on WASI

4 years agomade pointers 8 bytes in size; easier transition to WASM64 or C backend
Brendan Hansen [Fri, 15 Jan 2021 19:04:13 +0000 (13:04 -0600)]
made pointers 8 bytes in size; easier transition to WASM64 or C backend

4 years agorandom bits of code cleanup
Brendan Hansen [Fri, 15 Jan 2021 16:24:18 +0000 (10:24 -0600)]
random bits of code cleanup

4 years agorefactored a lot of the argument code for calls and struct literals
Brendan Hansen [Fri, 15 Jan 2021 15:45:25 +0000 (09:45 -0600)]
refactored a lot of the argument code for calls and struct literals

4 years agoactually added the test case
Brendan Hansen [Fri, 15 Jan 2021 02:46:13 +0000 (20:46 -0600)]
actually added the test case

4 years agoadded test case and small bugfix
Brendan Hansen [Fri, 15 Jan 2021 02:44:26 +0000 (20:44 -0600)]
added test case and small bugfix

4 years agoworking very of named arguments for function calls
Brendan Hansen [Fri, 15 Jan 2021 02:39:46 +0000 (20:39 -0600)]
working very of named arguments for function calls

4 years agoBROKEN BUILD; want to debug on windows
Brendan Hansen [Fri, 15 Jan 2021 00:05:36 +0000 (18:05 -0600)]
BROKEN BUILD; want to debug on windows

4 years agoremoved AstCall.arg_count
Brendan Hansen [Thu, 14 Jan 2021 22:48:42 +0000 (16:48 -0600)]
removed AstCall.arg_count

4 years agostruct literals work with new argument filling system
Brendan Hansen [Thu, 14 Jan 2021 22:38:55 +0000 (16:38 -0600)]
struct literals work with new argument filling system

4 years agostarted working on refactoring named arguments
Brendan Hansen [Thu, 14 Jan 2021 22:07:59 +0000 (16:07 -0600)]
started working on refactoring named arguments

4 years agoMerge remote-tracking branch 'origin/master'
Brendan Hansen [Thu, 14 Jan 2021 18:42:34 +0000 (12:42 -0600)]
Merge remote-tracking branch 'origin/master'

4 years agoadded pool allocator to core library
Brendan Hansen [Thu, 14 Jan 2021 18:41:52 +0000 (12:41 -0600)]
added pool allocator to core library

4 years agoadded pool allocator to core library
Brendan Hansen [Thu, 14 Jan 2021 18:41:52 +0000 (12:41 -0600)]
added pool allocator to core library

4 years agopolymorphic proc generation optimization
Brendan Hansen [Thu, 14 Jan 2021 02:46:16 +0000 (20:46 -0600)]
polymorphic proc generation optimization

4 years agojust random changes
Brendan Hansen [Wed, 13 Jan 2021 23:33:28 +0000 (17:33 -0600)]
just random changes

4 years agoadded struct and enum examples
Brendan Hansen [Wed, 13 Jan 2021 23:26:54 +0000 (17:26 -0600)]
added struct and enum examples

4 years agoarrays can cast to slices of the same type
Brendan Hansen [Wed, 13 Jan 2021 23:26:19 +0000 (17:26 -0600)]
arrays can cast to slices of the same type

4 years agoadded operator overload test case
Brendan Hansen [Wed, 13 Jan 2021 23:26:00 +0000 (17:26 -0600)]
added operator overload test case

4 years agoMerge pull request #34 from Graylunchbox74/master
Brendan Hansen [Tue, 12 Jan 2021 23:12:32 +0000 (17:12 -0600)]
Merge pull request #34 from Graylunchbox74/master

added pow function

4 years agoadded pow function
Graylunchbox74 [Tue, 12 Jan 2021 23:08:22 +0000 (17:08 -0600)]
added pow function

4 years agoupdated CHANGELOG; minor bug fixes
Brendan Hansen [Tue, 12 Jan 2021 22:23:08 +0000 (16:23 -0600)]
updated CHANGELOG; minor bug fixes

4 years agofixed infinite loop bug with multiple declarations
Brendan Hansen [Tue, 12 Jan 2021 21:31:25 +0000 (15:31 -0600)]
fixed infinite loop bug with multiple declarations

4 years agobetter handling for type solidification in compound expressions
Brendan Hansen [Tue, 12 Jan 2021 21:22:45 +0000 (15:22 -0600)]
better handling for type solidification in compound expressions

4 years agoupdated io.stream to use multiple return values; small mrv bug fixes
Brendan Hansen [Tue, 12 Jan 2021 21:06:23 +0000 (15:06 -0600)]
updated io.stream to use multiple return values; small mrv bug fixes

4 years agoMerge pull request #33 from brendanfh/multiple-returns
Brendan Hansen [Tue, 12 Jan 2021 20:34:48 +0000 (14:34 -0600)]
Merge pull request #33 from brendanfh/multiple-returns

Multiple returns #32

4 years agoadded test case for multiple returns/declarations
Brendan Hansen [Tue, 12 Jan 2021 20:33:40 +0000 (14:33 -0600)]
added test case for multiple returns/declarations

4 years agomultiple declarations work in procedure bodies
Brendan Hansen [Tue, 12 Jan 2021 20:32:07 +0000 (14:32 -0600)]
multiple declarations work in procedure bodies

4 years agopolymorphic variables on compound types
Brendan Hansen [Tue, 12 Jan 2021 16:49:40 +0000 (10:49 -0600)]
polymorphic variables on compound types

4 years agofinalized returning multiple values
Brendan Hansen [Tue, 12 Jan 2021 16:13:38 +0000 (10:13 -0600)]
finalized returning multiple values

4 years agobegan work on multiple return values
Brendan Hansen [Tue, 12 Jan 2021 04:22:12 +0000 (22:22 -0600)]
began work on multiple return values

4 years agoimplemented #27
Brendan Hansen [Mon, 11 Jan 2021 21:50:37 +0000 (15:50 -0600)]
implemented #27

4 years agosmall cleanup with parameters being mutable now
Brendan Hansen [Mon, 11 Jan 2021 18:59:26 +0000 (12:59 -0600)]
small cleanup with parameters being mutable now

4 years agominor changes to parameter logic
Brendan Hansen [Mon, 11 Jan 2021 18:32:04 +0000 (12:32 -0600)]
minor changes to parameter logic

4 years agominor bug fixes with polymorphic procedures
Brendan Hansen [Mon, 11 Jan 2021 14:39:40 +0000 (08:39 -0600)]
minor bug fixes with polymorphic procedures

4 years agopolymorphic procedures are allowed in overloaded functions
Brendan Hansen [Mon, 11 Jan 2021 05:39:30 +0000 (23:39 -0600)]
polymorphic procedures are allowed in overloaded functions

4 years agocode cleanup making new ast nodes
Brendan Hansen [Sun, 10 Jan 2021 22:16:17 +0000 (16:16 -0600)]
code cleanup making new ast nodes

4 years agosmall improvements
Brendan Hansen [Sun, 10 Jan 2021 17:14:00 +0000 (11:14 -0600)]
small improvements

4 years agobug fix with invalid binary operator in modify-assignment
Brendan Hansen [Sun, 10 Jan 2021 16:20:59 +0000 (10:20 -0600)]
bug fix with invalid binary operator in modify-assignment

4 years agocleaner code for operator overloading
Brendan Hansen [Sun, 10 Jan 2021 14:41:35 +0000 (08:41 -0600)]
cleaner code for operator overloading

4 years agobetter error checking for operator overloading
Brendan Hansen [Sun, 10 Jan 2021 05:36:36 +0000 (23:36 -0600)]
better error checking for operator overloading

4 years agoadded basics of operator overloading
Brendan Hansen [Sun, 10 Jan 2021 01:06:22 +0000 (19:06 -0600)]
added basics of operator overloading

4 years agostarted working on abstract stream api
Brendan Hansen [Sat, 9 Jan 2021 20:49:25 +0000 (14:49 -0600)]
started working on abstract stream api

4 years agosmall bug fixes with polymorphic struct errors
Brendan Hansen [Sat, 9 Jan 2021 16:02:04 +0000 (10:02 -0600)]
small bug fixes with polymorphic struct errors

4 years agocleaned up type parsing
Brendan Hansen [Sat, 9 Jan 2021 05:11:22 +0000 (23:11 -0600)]
cleaned up type parsing

4 years agovarious little bug fixes around the code
Brendan Hansen [Fri, 8 Jan 2021 23:19:30 +0000 (17:19 -0600)]
various little bug fixes around the code

4 years agopolymorphic structures have compile time known arguments
Brendan Hansen [Fri, 8 Jan 2021 19:58:28 +0000 (13:58 -0600)]
polymorphic structures have compile time known arguments

4 years agoadded easier way to do types in value expressions
Brendan Hansen [Fri, 8 Jan 2021 00:40:30 +0000 (18:40 -0600)]
added easier way to do types in value expressions

4 years agosmall bug fixes with polymorphic array lengths
Brendan Hansen [Thu, 7 Jan 2021 23:03:35 +0000 (17:03 -0600)]
small bug fixes with polymorphic array lengths

4 years agoarray types are polymorphic on size
Brendan Hansen [Thu, 7 Jan 2021 22:32:41 +0000 (16:32 -0600)]
array types are polymorphic on size

4 years agoupdating documents and small bugfix
Brendan Hansen [Thu, 7 Jan 2021 22:32:26 +0000 (16:32 -0600)]
updating documents and small bugfix

4 years agoadded some examples; small bug fix
Brendan Hansen [Thu, 7 Jan 2021 18:41:01 +0000 (12:41 -0600)]
added some examples; small bug fix

4 years agoremoved old argument code; preparing for named arguments
Brendan Hansen [Wed, 6 Jan 2021 19:19:47 +0000 (13:19 -0600)]
removed old argument code; preparing for named arguments

4 years agodefault values are no longer immediately type checked
Brendan Hansen [Wed, 6 Jan 2021 18:08:59 +0000 (12:08 -0600)]
default values are no longer immediately type checked

4 years agofixed the broken test case and a gnarly bug
Brendan Hansen [Wed, 6 Jan 2021 15:46:50 +0000 (09:46 -0600)]
fixed the broken test case and a gnarly bug

4 years agochanged cast logic; a test case is not correct at the moment
Brendan Hansen [Wed, 6 Jan 2021 05:24:49 +0000 (23:24 -0600)]
changed cast logic; a test case is not correct at the moment

4 years agomoved some logic from symbol resolution to type checking
Brendan Hansen [Wed, 6 Jan 2021 03:19:52 +0000 (21:19 -0600)]
moved some logic from symbol resolution to type checking

4 years ago`defer` has better semantics with targeted jump statements
Brendan Hansen [Wed, 6 Jan 2021 00:55:59 +0000 (18:55 -0600)]
`defer` has better semantics with targeted jump statements

4 years agocode cleanup in checker and symres
Brendan Hansen [Tue, 5 Jan 2021 16:55:34 +0000 (10:55 -0600)]
code cleanup in checker and symres

4 years agofix onyx-build.yml again
Brendan Hansen [Tue, 5 Jan 2021 02:19:33 +0000 (20:19 -0600)]
fix onyx-build.yml again

4 years agofix onyx-build.yml
Brendan Hansen [Tue, 5 Jan 2021 02:17:59 +0000 (20:17 -0600)]
fix onyx-build.yml

4 years agoremoved old Makefile; just use build.sh or build.bat
Brendan Hansen [Tue, 5 Jan 2021 02:16:44 +0000 (20:16 -0600)]
removed old Makefile; just use build.sh or build.bat

4 years agoupdated CHANGELOG
Brendan Hansen [Tue, 5 Jan 2021 02:04:12 +0000 (20:04 -0600)]
updated CHANGELOG

4 years agocompiling with more warnings for cleaner code
Brendan Hansen [Tue, 5 Jan 2021 01:51:10 +0000 (19:51 -0600)]
compiling with more warnings for cleaner code

4 years agosmall updates; getting more working with Windows
Brendan Hansen [Tue, 5 Jan 2021 00:05:30 +0000 (18:05 -0600)]
small updates; getting more working with Windows

4 years agoWindows compilation is working!
Brendan Hansen [Mon, 4 Jan 2021 23:22:13 +0000 (17:22 -0600)]
Windows compilation is working!

4 years agoarray literal assignment optimization
Brendan Hansen [Mon, 4 Jan 2021 20:15:30 +0000 (14:15 -0600)]
array literal assignment optimization