onyx.git
4 years agopolyprocs can be passed as arguments; code cleanup and bugfixes
Brendan Hansen [Mon, 31 Aug 2020 18:40:58 +0000 (13:40 -0500)]
polyprocs can be passed as arguments; code cleanup and bugfixes

4 years agocode cleanup and bugfixes; added file location directives
Brendan Hansen [Mon, 31 Aug 2020 03:11:01 +0000 (22:11 -0500)]
code cleanup and bugfixes; added file location directives

4 years agosmall error improvements; moved where proc directives go
Brendan Hansen [Sun, 30 Aug 2020 17:10:33 +0000 (12:10 -0500)]
small error improvements; moved where proc directives go

4 years agoadded '#add_overload' directive
Brendan Hansen [Sun, 30 Aug 2020 16:11:10 +0000 (11:11 -0500)]
added '#add_overload' directive

4 years agomassive renaming of internal compiler things
Brendan Hansen [Sun, 30 Aug 2020 12:59:55 +0000 (07:59 -0500)]
massive renaming of internal compiler things

4 years agocritical bugfixes and sublime/vim compiliation support
Brendan Hansen [Sat, 29 Aug 2020 20:01:55 +0000 (15:01 -0500)]
critical bugfixes and sublime/vim compiliation support

4 years agoweird bugfix with operator precedence
Brendan Hansen [Sat, 29 Aug 2020 04:53:38 +0000 (23:53 -0500)]
weird bugfix with operator precedence

4 years agobugfixes and more testing
Brendan Hansen [Sat, 29 Aug 2020 03:50:35 +0000 (22:50 -0500)]
bugfixes and more testing

4 years agoadding array functionality and bugfixes
Brendan Hansen [Sat, 29 Aug 2020 02:34:56 +0000 (21:34 -0500)]
adding array functionality and bugfixes

4 years agoadded dynamic array type since polymorphism is now a thing
Brendan Hansen [Sat, 29 Aug 2020 01:57:57 +0000 (20:57 -0500)]
added dynamic array type since polymorphism is now a thing

4 years agocaching previous generated polymorphic functions
Brendan Hansen [Fri, 28 Aug 2020 22:37:55 +0000 (17:37 -0500)]
caching previous generated polymorphic functions

4 years agoStarted the basics of polymorphic procedures. code clean and bugfixes to follow.
Brendan Hansen [Fri, 28 Aug 2020 21:58:32 +0000 (16:58 -0500)]
Started the basics of polymorphic procedures. code clean and bugfixes to follow.

4 years agoadded implicit '.data' to slices so they behave like arrays
Brendan Hansen [Fri, 28 Aug 2020 16:29:04 +0000 (11:29 -0500)]
added implicit '.data' to slices so they behave like arrays

4 years agorefactored slice types to not be a struct type internally
Brendan Hansen [Fri, 28 Aug 2020 13:38:04 +0000 (08:38 -0500)]
refactored slice types to not be a struct type internally

4 years agosmall bugfixes
Brendan Hansen [Fri, 28 Aug 2020 02:29:48 +0000 (21:29 -0500)]
small bugfixes

4 years agoUpdate README.md
Brendan Hansen [Thu, 27 Aug 2020 16:36:59 +0000 (11:36 -0500)]
Update README.md

4 years agostarted working on a auto-documentation output
Brendan Hansen [Wed, 26 Aug 2020 17:42:20 +0000 (12:42 -0500)]
started working on a auto-documentation output

4 years agobug fixes with default parameters
Brendan Hansen [Wed, 26 Aug 2020 03:52:00 +0000 (22:52 -0500)]
bug fixes with default parameters

4 years agoadded default parameters; will need to be bug tested thoroughly
Brendan Hansen [Wed, 26 Aug 2020 03:41:05 +0000 (22:41 -0500)]
added default parameters; will need to be bug tested thoroughly

4 years agochecking things off
Brendan Hansen [Tue, 25 Aug 2020 15:27:59 +0000 (10:27 -0500)]
checking things off

4 years agoAdded initializer to switch statement; slight output improvements
Brendan Hansen [Tue, 25 Aug 2020 14:32:24 +0000 (09:32 -0500)]
Added initializer to switch statement; slight output improvements

4 years agoadded fallthrough on switch statements; code cleanup
Brendan Hansen [Tue, 25 Aug 2020 12:58:55 +0000 (07:58 -0500)]
added fallthrough on switch statements; code cleanup

4 years agoadded basics on switch statements; will need much testing
Brendan Hansen [Tue, 25 Aug 2020 03:48:53 +0000 (22:48 -0500)]
added basics on switch statements; will need much testing

4 years agoperformance improvements
Brendan Hansen [Mon, 24 Aug 2020 21:28:16 +0000 (16:28 -0500)]
performance improvements

4 years agoAdded slice types; bugfixes
Brendan Hansen [Mon, 24 Aug 2020 17:11:12 +0000 (12:11 -0500)]
Added slice types; bugfixes

4 years agobugfixes with alignment
Brendan Hansen [Mon, 24 Aug 2020 02:32:27 +0000 (21:32 -0500)]
bugfixes with alignment

4 years agoadded initializer to if and while; added else on while
Brendan Hansen [Mon, 24 Aug 2020 02:17:54 +0000 (21:17 -0500)]
added initializer to if and while; added else on while

4 years agoallowing non simple structures to be stored and loaded
Brendan Hansen [Sun, 23 Aug 2020 15:44:45 +0000 (10:44 -0500)]
allowing non simple structures to be stored and loaded

4 years agoadding more core functionality and bugfixes
Brendan Hansen [Sun, 23 Aug 2020 04:28:48 +0000 (23:28 -0500)]
adding more core functionality and bugfixes

4 years agogeneral bugfixes; strings are now a pointer and a length
Brendan Hansen [Sat, 22 Aug 2020 22:18:27 +0000 (17:18 -0500)]
general bugfixes; strings are now a pointer and a length

4 years agobugfixes and starting to integrate with wasi_unstable
Brendan Hansen [Sat, 22 Aug 2020 16:36:14 +0000 (11:36 -0500)]
bugfixes and starting to integrate with wasi_unstable

4 years agoImproved speed of lexer slightly; started profiling
Brendan Hansen [Fri, 21 Aug 2020 03:15:46 +0000 (22:15 -0500)]
Improved speed of lexer slightly; started profiling

4 years agosmall bugfix with struct literal named values
Brendan Hansen [Wed, 19 Aug 2020 18:49:30 +0000 (13:49 -0500)]
small bugfix with struct literal named values

4 years agocleaning up old test files; will add more examples soon
Brendan Hansen [Tue, 18 Aug 2020 20:59:06 +0000 (15:59 -0500)]
cleaning up old test files; will add more examples soon

4 years agobug fix with named struct members
Brendan Hansen [Tue, 18 Aug 2020 14:02:26 +0000 (09:02 -0500)]
bug fix with named struct members

4 years agogeneral bugfixes
Brendan Hansen [Tue, 18 Aug 2020 13:59:02 +0000 (08:59 -0500)]
general bugfixes

4 years agoadded returning structs; much easier than anticipated
Brendan Hansen [Tue, 18 Aug 2020 01:23:49 +0000 (20:23 -0500)]
added returning structs; much easier than anticipated

4 years agoadded basic union types; force structs to be a particular alignment or size
Brendan Hansen [Mon, 17 Aug 2020 19:59:35 +0000 (14:59 -0500)]
added basic union types; force structs to be a particular alignment or size

4 years agosmall bugfixes
Brendan Hansen [Mon, 17 Aug 2020 03:43:29 +0000 (22:43 -0500)]
small bugfixes

4 years agoadded default initial values to struct; added named values to struct literals
Brendan Hansen [Mon, 17 Aug 2020 03:32:32 +0000 (22:32 -0500)]
added default initial values to struct; added named values to struct literals

4 years agoadded basic struct literals; code cleanup
Brendan Hansen [Sun, 16 Aug 2020 20:28:42 +0000 (15:28 -0500)]
added basic struct literals; code cleanup

4 years agoMerge remote-tracking branch 'origin/master' into master
Brendan Hansen [Sat, 15 Aug 2020 17:00:52 +0000 (12:00 -0500)]
Merge remote-tracking branch 'origin/master' into master

4 years agosmall bugfix when assigning to memory reservations
Brendan Hansen [Sat, 15 Aug 2020 16:22:12 +0000 (11:22 -0500)]
small bugfix when assigning to memory reservations

4 years agosmall bugfix when assigning to memory reservations
Brendan Hansen [Sat, 15 Aug 2020 16:22:12 +0000 (11:22 -0500)]
small bugfix when assigning to memory reservations

4 years agosmall bugfix for setting global structs
Brendan Hansen [Sat, 15 Aug 2020 15:59:21 +0000 (10:59 -0500)]
small bugfix for setting global structs

4 years agooptimized local.set followed by local.get
Brendan Hansen [Sat, 15 Aug 2020 15:42:13 +0000 (10:42 -0500)]
optimized local.set followed by local.get

4 years agocode cleanup; can 'use' bare structures
Brendan Hansen [Sat, 15 Aug 2020 15:19:04 +0000 (10:19 -0500)]
code cleanup; can 'use' bare structures

4 years agocode cleanup and bug fixes
Brendan Hansen [Fri, 14 Aug 2020 21:51:51 +0000 (16:51 -0500)]
code cleanup and bug fixes

4 years agothings of struct type now work as lvalues
Brendan Hansen [Thu, 13 Aug 2020 16:07:22 +0000 (11:07 -0500)]
things of struct type now work as lvalues

4 years agoAdded a local allocator to better manage WASM locals
Brendan Hansen [Thu, 13 Aug 2020 13:21:10 +0000 (08:21 -0500)]
Added a local allocator to better manage WASM locals

4 years agoadded 'builtin' package for symbols that are built into the language
Brendan Hansen [Wed, 12 Aug 2020 17:29:30 +0000 (12:29 -0500)]
added 'builtin' package for symbols that are built into the language

4 years agomuch refactoring; changed passing structs by value; stack frame management; added...
Brendan Hansen [Wed, 12 Aug 2020 16:03:29 +0000 (11:03 -0500)]
much refactoring; changed passing structs by value; stack frame management; added onyxbuiltins

4 years agomoved pipe operator to being a binary operator
Brendan Hansen [Tue, 11 Aug 2020 20:54:32 +0000 (15:54 -0500)]
moved pipe operator to being a binary operator

4 years agochanged UFC operator to |> for now; fixed bug with nested UFCs
Brendan Hansen [Tue, 11 Aug 2020 18:57:23 +0000 (13:57 -0500)]
changed UFC operator to |> for now; fixed bug with nested UFCs

4 years agoreadded UFC syntax using the ' operator
Brendan Hansen [Tue, 11 Aug 2020 17:49:17 +0000 (12:49 -0500)]
readded UFC syntax using the ' operator

4 years agochanged syntax for including files and folders
Brendan Hansen [Tue, 11 Aug 2020 15:12:39 +0000 (10:12 -0500)]
changed syntax for including files and folders

4 years agocan include other folders in search path
Brendan Hansen [Tue, 11 Aug 2020 03:11:59 +0000 (22:11 -0500)]
can include other folders in search path

4 years agoadded binary op reduction to comparison and boolean operators
Brendan Hansen [Mon, 10 Aug 2020 20:43:29 +0000 (15:43 -0500)]
added binary op reduction to comparison and boolean operators

4 years agoused valgrind to find memory issues
Brendan Hansen [Mon, 10 Aug 2020 20:24:51 +0000 (15:24 -0500)]
used valgrind to find memory issues

4 years agobugfix with compile time expression as array size
Brendan Hansen [Mon, 10 Aug 2020 19:54:58 +0000 (14:54 -0500)]
bugfix with compile time expression as array size

4 years agostarted work on reducing compile time known values
Brendan Hansen [Mon, 10 Aug 2020 19:45:33 +0000 (14:45 -0500)]
started work on reducing compile time known values

4 years agoadded memory reservation initial values
Brendan Hansen [Mon, 10 Aug 2020 17:43:49 +0000 (12:43 -0500)]
added memory reservation initial values

4 years agostring literal data section improvement
Brendan Hansen [Mon, 10 Aug 2020 15:27:14 +0000 (10:27 -0500)]
string literal data section improvement

4 years agosmall bugfix for binary operator checking
Brendan Hansen [Mon, 10 Aug 2020 15:19:16 +0000 (10:19 -0500)]
small bugfix for binary operator checking

4 years agosmall improvement for binary operator checking
Brendan Hansen [Mon, 10 Aug 2020 14:23:33 +0000 (09:23 -0500)]
small improvement for binary operator checking

4 years agoadded char literals and fixed cast bugs
Brendan Hansen [Mon, 10 Aug 2020 13:54:03 +0000 (08:54 -0500)]
added char literals and fixed cast bugs

4 years agobugfixes
Brendan Hansen [Mon, 10 Aug 2020 03:07:02 +0000 (22:07 -0500)]
bugfixes

4 years agoCode cleanup for numeric literals
Brendan Hansen [Mon, 10 Aug 2020 02:45:14 +0000 (21:45 -0500)]
Code cleanup for numeric literals

4 years agorandom improvements
Brendan Hansen [Mon, 10 Aug 2020 02:06:14 +0000 (21:06 -0500)]
random improvements

4 years agosmall bugfix with struct typing
Brendan Hansen [Sat, 8 Aug 2020 16:17:32 +0000 (11:17 -0500)]
small bugfix with struct typing

4 years agosmall bugfixes
Brendan Hansen [Sat, 8 Aug 2020 03:38:51 +0000 (22:38 -0500)]
small bugfixes

4 years agousing wasm local when possible again
Brendan Hansen [Sat, 8 Aug 2020 03:34:42 +0000 (22:34 -0500)]
using wasm local when possible again

4 years agoConverted to using a proper stack system; many improvements will be needed but it...
Brendan Hansen [Fri, 7 Aug 2020 18:55:14 +0000 (13:55 -0500)]
Converted to using a proper stack system; many improvements will be needed but it works

4 years agoAdded '#file_contents' directive to expression
Brendan Hansen [Thu, 6 Aug 2020 22:26:42 +0000 (17:26 -0500)]
Added '#file_contents' directive to expression

4 years agoparser is now more fault tolerant to unexpected tokens
Brendan Hansen [Tue, 4 Aug 2020 20:17:28 +0000 (15:17 -0500)]
parser is now more fault tolerant to unexpected tokens

4 years agoVery sad but working implementation of hex literals
Brendan Hansen [Mon, 3 Aug 2020 20:58:08 +0000 (15:58 -0500)]
Very sad but working implementation of hex literals

4 years agoAdded '#private' directive for package limited scope
Brendan Hansen [Mon, 3 Aug 2020 15:00:05 +0000 (10:00 -0500)]
Added '#private' directive for package limited scope

4 years agoAdded adding and subtracting from pointers with C style pointer arithmetic
Brendan Hansen [Sun, 2 Aug 2020 20:08:14 +0000 (15:08 -0500)]
Added adding and subtracting from pointers with C style pointer arithmetic

4 years agoa 'do' statement is now allowed anywhere a single statement block would be
Brendan Hansen [Fri, 31 Jul 2020 01:37:10 +0000 (20:37 -0500)]
a 'do' statement is now allowed anywhere a single statement block would be

4 years agodeferred statement bugfixes
Brendan Hansen [Thu, 30 Jul 2020 22:58:47 +0000 (17:58 -0500)]
deferred statement bugfixes

4 years agoAdded deferred statements; maybe a little buggy
Brendan Hansen [Thu, 30 Jul 2020 20:04:15 +0000 (15:04 -0500)]
Added deferred statements; maybe a little buggy

4 years agocasting from void is not allowed
Brendan Hansen [Thu, 30 Jul 2020 03:45:55 +0000 (22:45 -0500)]
casting from void is not allowed

4 years agoTesting language features; small bugfixes
Brendan Hansen [Thu, 30 Jul 2020 03:41:08 +0000 (22:41 -0500)]
Testing language features; small bugfixes

4 years agoChanged cast syntax; added basic heap allocator in onyx
Brendan Hansen [Wed, 29 Jul 2020 22:17:48 +0000 (17:17 -0500)]
Changed cast syntax; added basic heap allocator in onyx

4 years agosmall updates; removing onyxir
Brendan Hansen [Tue, 28 Jul 2020 22:14:19 +0000 (17:14 -0500)]
small updates; removing onyxir

4 years agoSmall bugfixes
Brendan Hansen [Tue, 28 Jul 2020 18:29:30 +0000 (13:29 -0500)]
Small bugfixes

4 years agoAdded basic type aliasing
Brendan Hansen [Tue, 28 Jul 2020 16:38:07 +0000 (11:38 -0500)]
Added basic type aliasing

4 years agotesting with 'first-class' procedures
Brendan Hansen [Tue, 28 Jul 2020 04:15:56 +0000 (23:15 -0500)]
testing with 'first-class' procedures

4 years agoAdded procedure declarations at the expression level; properly using elems now
Brendan Hansen [Mon, 27 Jul 2020 21:37:39 +0000 (16:37 -0500)]
Added procedure declarations at the expression level; properly using elems now

4 years agoBug fixes with first class functions
Brendan Hansen [Mon, 27 Jul 2020 20:43:05 +0000 (15:43 -0500)]
Bug fixes with first class functions

4 years agoAdd indirect function calls (function pointers)
Brendan Hansen [Mon, 27 Jul 2020 20:29:26 +0000 (15:29 -0500)]
Add indirect function calls (function pointers)

4 years agonot filling the binary with thousands of unnecessary zeros
Brendan Hansen [Mon, 27 Jul 2020 15:50:17 +0000 (10:50 -0500)]
not filling the binary with thousands of unnecessary zeros

4 years agoSmall improvement to errors with use parameters
Brendan Hansen [Mon, 27 Jul 2020 14:50:28 +0000 (09:50 -0500)]
Small improvement to errors with use parameters

4 years agoAdded ability to 'use' parameters
Brendan Hansen [Mon, 27 Jul 2020 14:48:04 +0000 (09:48 -0500)]
Added ability to 'use' parameters

4 years agoStarted basics of pointers to sized data
Brendan Hansen [Mon, 27 Jul 2020 03:50:23 +0000 (22:50 -0500)]
Started basics of pointers to sized data

4 years agoAdded flags directive to enums
Brendan Hansen [Sun, 26 Jul 2020 19:40:51 +0000 (14:40 -0500)]
Added flags directive to enums

4 years agoAdded 'alignof' unary operator and alignment checking on structs
Brendan Hansen [Sun, 26 Jul 2020 16:51:35 +0000 (11:51 -0500)]
Added 'alignof' unary operator and alignment checking on structs

4 years agoAdded initial implementation of enums; bugfixes will be needed
Brendan Hansen [Sun, 26 Jul 2020 16:22:36 +0000 (11:22 -0500)]
Added initial implementation of enums; bugfixes will be needed

4 years agoBugfix with package scopes
Brendan Hansen [Fri, 24 Jul 2020 23:54:16 +0000 (18:54 -0500)]
Bugfix with package scopes

4 years agoBug fixes in package system; package graph cycles are resolved
Brendan Hansen [Fri, 24 Jul 2020 16:08:30 +0000 (11:08 -0500)]
Bug fixes in package system; package graph cycles are resolved