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

4 years agoadded for loop iteration over slices and dynamic arrays
Brendan Hansen [Sat, 5 Sep 2020 04:24:05 +0000 (23:24 -0500)]
added for loop iteration over slices and dynamic arrays

4 years agochanged semantics of for loops; now iterable based
Brendan Hansen [Fri, 4 Sep 2020 19:20:10 +0000 (14:20 -0500)]
changed semantics of for loops; now iterable based

4 years agocan subscript array with a value of type 'range'; not just a range
Brendan Hansen [Fri, 4 Sep 2020 13:26:57 +0000 (08:26 -0500)]
can subscript array with a value of type 'range'; not just a range
literal

4 years agochanged slice creation syntax to use ranges
Brendan Hansen [Fri, 4 Sep 2020 03:54:22 +0000 (22:54 -0500)]
changed slice creation syntax to use ranges

4 years agoadded ranges; will replace for loop and slice syntax soon
Brendan Hansen [Fri, 4 Sep 2020 03:18:40 +0000 (22:18 -0500)]
added ranges; will replace for loop and slice syntax soon

4 years agoadded ability to output a tag file
Brendan Hansen [Thu, 3 Sep 2020 15:38:12 +0000 (10:38 -0500)]
added ability to output a tag file

4 years ago'builtin' package is implicitly included; multiple unqualified uses are eliminated
Brendan Hansen [Wed, 2 Sep 2020 14:14:55 +0000 (09:14 -0500)]
'builtin' package is implicitly included; multiple unqualified uses are eliminated

4 years agoadded core array functions
Brendan Hansen [Wed, 2 Sep 2020 02:14:22 +0000 (21:14 -0500)]
added core array functions

4 years agoresolving polymorphic params in function parameters; code cleanup
Brendan Hansen [Tue, 1 Sep 2020 19:01:24 +0000 (14:01 -0500)]
resolving polymorphic params in function parameters; code cleanup

4 years agoadded ptrmap.onyx; small bugfixes; changed rules about auto pointer conversions
Brendan Hansen [Tue, 1 Sep 2020 16:00:16 +0000 (11:00 -0500)]
added ptrmap.onyx; small bugfixes; changed rules about auto pointer conversions

4 years agorefactoring core arrays
Brendan Hansen [Tue, 1 Sep 2020 14:33:07 +0000 (09:33 -0500)]
refactoring core arrays

4 years agoadded block comments (kinda); bug fixes
Brendan Hansen [Tue, 1 Sep 2020 03:11:03 +0000 (22:11 -0500)]
added block comments (kinda); bug fixes

4 years agorefactoring core libraries
Brendan Hansen [Mon, 31 Aug 2020 22:42:18 +0000 (17:42 -0500)]
refactoring core libraries

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