onyx.git
4 years agoRenamed 'scope' to 'localgroup' since scope didn't feel right
Brendan Hansen [Wed, 8 Jul 2020 20:56:01 +0000 (15:56 -0500)]
Renamed 'scope' to 'localgroup' since scope didn't feel right

4 years agoStarting to refactor the linked-list nature
Brendan Hansen [Wed, 8 Jul 2020 18:54:21 +0000 (13:54 -0500)]
Starting to refactor the linked-list nature

4 years agoSlight refactoring and adding compiler directives
Brendan Hansen [Tue, 7 Jul 2020 23:21:41 +0000 (18:21 -0500)]
Slight refactoring and adding compiler directives

4 years agoRemoved unnecessary tokens in the lexer
Brendan Hansen [Fri, 3 Jul 2020 17:19:31 +0000 (12:19 -0500)]
Removed unnecessary tokens in the lexer

4 years agoMoved the AST nodes to another file
Brendan Hansen [Fri, 3 Jul 2020 16:02:17 +0000 (11:02 -0500)]
Moved the AST nodes to another file

4 years agoAdded +=, -=, *=, etc. operators
Brendan Hansen [Fri, 3 Jul 2020 14:24:41 +0000 (09:24 -0500)]
Added +=, -=, *=, etc. operators

4 years agoRefactored the AST node structure
Brendan Hansen [Fri, 3 Jul 2020 04:30:39 +0000 (23:30 -0500)]
Refactored the AST node structure
This involved rewriting a lot of the code that was there

4 years agoAdded verbose output option
Brendan Hansen [Fri, 3 Jul 2020 00:59:09 +0000 (19:59 -0500)]
Added verbose output option

4 years agoCode cleanup and optimizations
Brendan Hansen [Thu, 2 Jul 2020 21:46:29 +0000 (16:46 -0500)]
Code cleanup and optimizations

5 years ago'use' statements work; only initial version
Brendan Hansen [Thu, 2 Jul 2020 02:34:10 +0000 (21:34 -0500)]
'use' statements work; only initial version

5 years agoUpdated README
Brendan Hansen [Wed, 1 Jul 2020 19:52:30 +0000 (14:52 -0500)]
Updated README

5 years agoBug fixes and additions to globals
Brendan Hansen [Wed, 1 Jul 2020 14:16:20 +0000 (09:16 -0500)]
Bug fixes and additions to globals

5 years agoAdded initial version of globals
Brendan Hansen [Wed, 1 Jul 2020 03:40:32 +0000 (22:40 -0500)]
Added initial version of globals
More work will be needed; also, might remove the pointer to code style
in the WASM compilation step

5 years agoStarting work on globals
Brendan Hansen [Tue, 30 Jun 2020 21:16:08 +0000 (16:16 -0500)]
Starting work on globals

5 years agoCode cleanup; starting on WASM globals
Brendan Hansen [Tue, 30 Jun 2020 15:35:41 +0000 (10:35 -0500)]
Code cleanup; starting on WASM globals

5 years agoUsing managed heap allocator; slight code cleanup
Brendan Hansen [Sun, 28 Jun 2020 16:03:11 +0000 (11:03 -0500)]
Using managed heap allocator; slight code cleanup

5 years agoMerge branch 'master' of https://github.com/brendanfh/onyx
Brendan Hansen [Sun, 28 Jun 2020 03:43:48 +0000 (22:43 -0500)]
Merge branch 'master' of https://github.com/brendanfh/onyx

5 years agoAdded managed heap allocation to bh.h
Brendan Hansen [Sun, 28 Jun 2020 03:43:03 +0000 (22:43 -0500)]
Added managed heap allocation to bh.h
This will simplify some of the allocations in the compiler

5 years agoUpdate README.md
Brendan Hansen [Fri, 26 Jun 2020 20:15:16 +0000 (15:15 -0500)]
Update README.md

5 years agoStage 1 done; added test file for break/continue
Brendan Hansen [Fri, 26 Jun 2020 20:06:26 +0000 (15:06 -0500)]
Stage 1 done; added test file for break/continue

5 years agoMAJOR bug fix with binop code generation
Brendan Hansen [Fri, 26 Jun 2020 19:57:42 +0000 (14:57 -0500)]
MAJOR bug fix with binop code generation

5 years agofixed accidental pasting
Brendan Hansen [Fri, 26 Jun 2020 18:18:15 +0000 (13:18 -0500)]
fixed accidental pasting
Always compile before commiting!

5 years agoFixed all mixed tabs and spaces
Brendan Hansen [Fri, 26 Jun 2020 16:00:48 +0000 (11:00 -0500)]
Fixed all mixed tabs and spaces
Everything is spaces now

5 years agoAdded a README
Brendan Hansen [Fri, 26 Jun 2020 15:45:06 +0000 (10:45 -0500)]
Added a README

5 years agocode cleanup; grouped all binary ops together
Brendan Hansen [Fri, 26 Jun 2020 15:26:25 +0000 (10:26 -0500)]
code cleanup; grouped all binary ops together

5 years agoChanged order of error checking
Brendan Hansen [Thu, 25 Jun 2020 19:44:52 +0000 (14:44 -0500)]
Changed order of error checking
constant is now checked before lval

5 years agoAdded boolean types and while statements
Brendan Hansen [Thu, 25 Jun 2020 19:35:45 +0000 (14:35 -0500)]
Added boolean types and while statements
Almost a very usable language

5 years agoBetter compiler frontend; compile many files at once
Brendan Hansen [Wed, 24 Jun 2020 22:33:39 +0000 (17:33 -0500)]
Better compiler frontend; compile many files at once

5 years agoUsing vim sessions now; don't want them committed
Brendan Hansen [Wed, 24 Jun 2020 02:48:08 +0000 (21:48 -0500)]
Using vim sessions now; don't want them committed

5 years agoFixed bug with naked blocks not being compiled
Brendan Hansen [Wed, 24 Jun 2020 02:19:22 +0000 (21:19 -0500)]
Fixed bug with naked blocks not being compiled

5 years agoFully compiling to WASM again
Brendan Hansen [Wed, 24 Jun 2020 02:10:40 +0000 (21:10 -0500)]
Fully compiling to WASM again

5 years agoVarious improvements and bug fixes
Brendan Hansen [Tue, 23 Jun 2020 03:20:05 +0000 (22:20 -0500)]
Various improvements and bug fixes

5 years agoAdded initial type checking
Brendan Hansen [Mon, 22 Jun 2020 21:43:54 +0000 (16:43 -0500)]
Added initial type checking

5 years agoSplitting up code for easier maintainability
Brendan Hansen [Mon, 22 Jun 2020 16:54:34 +0000 (11:54 -0500)]
Splitting up code for easier maintainability

5 years agoBug fixes with symbol resolution
Brendan Hansen [Mon, 22 Jun 2020 16:16:18 +0000 (11:16 -0500)]
Bug fixes with symbol resolution

5 years agoAdded proper symbol resolution
Brendan Hansen [Mon, 22 Jun 2020 15:51:02 +0000 (10:51 -0500)]
Added proper symbol resolution
Compiler is now in a working state

5 years agoRemoved need for semicolons after some statements
Brendan Hansen [Sun, 21 Jun 2020 21:16:43 +0000 (16:16 -0500)]
Removed need for semicolons after some statements

5 years agoAdded initial vim syntax highlighting; bug fixes
Brendan Hansen [Sat, 20 Jun 2020 23:14:05 +0000 (18:14 -0500)]
Added initial vim syntax highlighting; bug fixes

5 years agoAdded logical comparison operators
Brendan Hansen [Sat, 20 Jun 2020 20:38:29 +0000 (15:38 -0500)]
Added logical comparison operators
Still need to add boolean types

5 years agoAdded if statements
Brendan Hansen [Sat, 20 Jun 2020 20:10:29 +0000 (15:10 -0500)]
Added if statements

5 years agoBugfix with scratch allocator
Brendan Hansen [Sat, 20 Jun 2020 02:46:40 +0000 (21:46 -0500)]
Bugfix with scratch allocator

5 years agoAdded bin ops with precedence; bug fixes
Brendan Hansen [Sat, 20 Jun 2020 02:38:04 +0000 (21:38 -0500)]
Added bin ops with precedence; bug fixes

5 years agoBugfixes for foreign function calls
Brendan Hansen [Fri, 19 Jun 2020 17:37:49 +0000 (12:37 -0500)]
Bugfixes for foreign function calls

5 years agoAdded foreign functions (WASM imports)
Brendan Hansen [Fri, 19 Jun 2020 16:05:36 +0000 (11:05 -0500)]
Added foreign functions (WASM imports)

5 years agoStarted work on importing external functions
Brendan Hansen [Fri, 19 Jun 2020 03:09:00 +0000 (22:09 -0500)]
Started work on importing external functions

5 years agoAdded numeric literals and changes to bh_imap
Brendan Hansen [Thu, 18 Jun 2020 20:13:24 +0000 (15:13 -0500)]
Added numeric literals and changes to bh_imap

5 years agoLots of small changes; initial function calling
Brendan Hansen [Thu, 18 Jun 2020 00:09:13 +0000 (19:09 -0500)]
Lots of small changes; initial function calling

5 years agoMany small changes; working on function calls
Brendan Hansen [Wed, 17 Jun 2020 03:37:07 +0000 (22:37 -0500)]
Many small changes; working on function calls
This version does not work for the minimal.onyx.

5 years agoCode clean up and added "start" section output
Brendan Hansen [Tue, 16 Jun 2020 04:12:17 +0000 (23:12 -0500)]
Code clean up and added "start" section output

5 years agoGENERATING A WORKING BINARY!
Brendan Hansen [Mon, 15 Jun 2020 16:02:31 +0000 (11:02 -0500)]
GENERATING A WORKING BINARY!

5 years agoGenerating an actual WASM binary!
Brendan Hansen [Mon, 15 Jun 2020 03:38:36 +0000 (22:38 -0500)]
Generating an actual WASM binary!
No code section right now however; still lots of work to do.

5 years agoStarting to output a binary for real.
Brendan Hansen [Sun, 14 Jun 2020 01:16:18 +0000 (20:16 -0500)]
Starting to output a binary for real.
Added LEB128 encodings

5 years agoAdded flexible buffer implementation
Brendan Hansen [Fri, 12 Jun 2020 03:44:13 +0000 (22:44 -0500)]
Added flexible buffer implementation

5 years agoProgress on basic WASM code generation
Brendan Hansen [Thu, 11 Jun 2020 16:04:12 +0000 (11:04 -0500)]
Progress on basic WASM code generation

5 years agoLots of changes
Brendan Hansen [Thu, 11 Jun 2020 14:02:52 +0000 (09:02 -0500)]
Lots of changes

5 years agoBug fix
Brendan Hansen [Wed, 10 Jun 2020 15:02:22 +0000 (10:02 -0500)]
Bug fix
I don't know how this ever worked...

5 years agoEven more bug fixes for bh_hash
Brendan Hansen [Tue, 9 Jun 2020 20:38:32 +0000 (15:38 -0500)]
Even more bug fixes for bh_hash

5 years agoAnother tiny bugfix on bh_hash implementation
Brendan Hansen [Tue, 9 Jun 2020 17:04:45 +0000 (12:04 -0500)]
Another tiny bugfix on bh_hash implementation

5 years agoBug fix in new bh_hash implementation
Brendan Hansen [Tue, 9 Jun 2020 15:09:00 +0000 (10:09 -0500)]
Bug fix in new bh_hash implementation

5 years agoChanged implementation for bh_hash
Brendan Hansen [Tue, 9 Jun 2020 15:02:24 +0000 (10:02 -0500)]
Changed implementation for bh_hash

5 years agoAdded exports to WASM Module and other bug fixes
Brendan Hansen [Tue, 9 Jun 2020 13:01:20 +0000 (08:01 -0500)]
Added exports to WASM Module and other bug fixes

5 years agoBug fixes
Brendan Hansen [Fri, 5 Jun 2020 02:19:32 +0000 (21:19 -0500)]
Bug fixes

5 years agoChanged comment syntax
Brendan Hansen [Fri, 5 Jun 2020 02:11:25 +0000 (21:11 -0500)]
Changed comment syntax

5 years agoStarting work on WASM code generation
Brendan Hansen [Thu, 4 Jun 2020 15:52:33 +0000 (10:52 -0500)]
Starting work on WASM code generation

5 years agoSpelling fix
Brendan Hansen [Wed, 3 Jun 2020 16:27:03 +0000 (11:27 -0500)]
Spelling fix

5 years agoBug fixes; preparing to start WASM code gen
Brendan Hansen [Tue, 2 Jun 2020 21:03:42 +0000 (16:03 -0500)]
Bug fixes; preparing to start WASM code gen

5 years agoStarted using CCLS instead of clangd
Brendan Hansen [Tue, 2 Jun 2020 03:15:44 +0000 (22:15 -0500)]
Started using CCLS instead of clangd

5 years agoCleaning up directory structure
Brendan Hansen [Tue, 2 Jun 2020 02:22:51 +0000 (21:22 -0500)]
Cleaning up directory structure

5 years agoBetter parse tree printer and some type checking
Brendan Hansen [Tue, 2 Jun 2020 01:05:14 +0000 (20:05 -0500)]
Better parse tree printer and some type checking

5 years agoImplemented #12
Brendan Hansen [Tue, 26 May 2020 21:11:06 +0000 (16:11 -0500)]
Implemented #12

5 years agoStarting on the semantic pass phase
Brendan Hansen [Mon, 25 May 2020 21:47:38 +0000 (16:47 -0500)]
Starting on the semantic pass phase

5 years agobug fixes for params shadowing
Brendan Hansen [Sun, 24 May 2020 16:47:59 +0000 (11:47 -0500)]
bug fixes for params shadowing

5 years agoMore parser progress; added notion of 'const'
Brendan Hansen [Sat, 23 May 2020 20:07:14 +0000 (15:07 -0500)]
More parser progress; added notion of 'const'

5 years agoI hate windows line endings; other small changes; Implemented #11
Brendan Hansen [Sat, 23 May 2020 19:10:19 +0000 (14:10 -0500)]
I hate windows line endings; other small changes; Implemented #11

5 years agoMore parse progress
Brendan Hansen [Sat, 23 May 2020 02:00:10 +0000 (21:00 -0500)]
More parse progress

5 years agoBugfix for negatives in bh_printf
Brendan Hansen [Thu, 21 May 2020 04:09:29 +0000 (23:09 -0500)]
Bugfix for negatives in bh_printf

5 years agoSmall bugfixes for bh_printf family
Brendan Hansen [Thu, 21 May 2020 03:45:13 +0000 (22:45 -0500)]
Small bugfixes for bh_printf family

5 years agoMade custom printf good enough to replace stdio printf for now (lots of missing funct...
Brendan Hansen [Thu, 21 May 2020 03:27:50 +0000 (22:27 -0500)]
Made custom printf good enough to replace stdio printf for now (lots of missing functionality)

5 years agoWorking on parser and custom printf alternative
Brendan Hansen [Thu, 21 May 2020 02:36:27 +0000 (21:36 -0500)]
Working on parser and custom printf alternative

5 years agoWorking more on the parser
Brendan Hansen [Tue, 19 May 2020 22:59:20 +0000 (17:59 -0500)]
Working more on the parser

5 years agoProgress on the initial parser #1
Brendan Hansen [Tue, 19 May 2020 03:28:31 +0000 (22:28 -0500)]
Progress on the initial parser #1

5 years agoSmall bugfix on Arena Allocator
Brendan Hansen [Mon, 18 May 2020 04:01:37 +0000 (23:01 -0500)]
Small bugfix on Arena Allocator

5 years agoGetting ready to start the initial parser
Brendan Hansen [Mon, 18 May 2020 03:28:28 +0000 (22:28 -0500)]
Getting ready to start the initial parser

5 years agoMerge remote-tracking branch 'origin/master'
Brendan Hansen [Sun, 17 May 2020 18:14:39 +0000 (13:14 -0500)]
Merge remote-tracking branch 'origin/master'

5 years agoSmall bugfix will pointer math
Brendan Hansen [Sun, 17 May 2020 18:02:45 +0000 (13:02 -0500)]
Small bugfix will pointer math

5 years agoSmall bugfix will pointer math
Brendan Hansen [Sun, 17 May 2020 18:02:45 +0000 (13:02 -0500)]
Small bugfix will pointer math

5 years agoImplemented Allow Arena allocator to create more arenas #10
Brendan Hansen [Sun, 17 May 2020 17:58:51 +0000 (12:58 -0500)]
Implemented Allow Arena allocator to create more arenas #10

5 years agoCode cleanup
Brendan Hansen [Sun, 17 May 2020 16:45:59 +0000 (11:45 -0500)]
Code cleanup

5 years agoApparently my "nofree" allocator is actually called an arena allocator
Brendan Hansen [Sun, 17 May 2020 04:33:24 +0000 (23:33 -0500)]
Apparently my "nofree" allocator is actually called an arena allocator

5 years agoSmall bug / performance fix
Brendan Hansen [Fri, 15 May 2020 19:50:26 +0000 (14:50 -0500)]
Small bug / performance fix

5 years agoAdded custom allocator capability to hashtables
Brendan Hansen [Fri, 15 May 2020 19:20:35 +0000 (14:20 -0500)]
Added custom allocator capability to hashtables

5 years agoSpelling fix
Brendan Hansen [Fri, 15 May 2020 17:45:35 +0000 (12:45 -0500)]
Spelling fix

5 years agoAdded custom allocators (heap and nofree allocators) #8 #9
Brendan Hansen [Fri, 15 May 2020 17:42:48 +0000 (12:42 -0500)]
Added custom allocators (heap and nofree allocators) #8 #9

5 years agoPushing changes at end of day
Brendan Hansen [Fri, 15 May 2020 03:15:10 +0000 (22:15 -0500)]
Pushing changes at end of day

5 years agoFixed Last tokens produced by tokenizer appear to be wrong. #7
Brendan Hansen [Thu, 14 May 2020 22:18:33 +0000 (17:18 -0500)]
Fixed Last tokens produced by tokenizer appear to be wrong. #7

5 years agoFixed Tokenizer producing wrong line number and column #6
Brendan Hansen [Thu, 14 May 2020 22:05:10 +0000 (17:05 -0500)]
Fixed Tokenizer producing wrong line number and column #6

5 years agoSmall memory improvement for hashtable iterators
Brendan Hansen [Thu, 14 May 2020 21:35:55 +0000 (16:35 -0500)]
Small memory improvement for hashtable iterators

5 years agoSmall fixes to safety of hash iterator
Brendan Hansen [Thu, 14 May 2020 17:23:31 +0000 (12:23 -0500)]
Small fixes to safety of hash iterator

5 years agoAdded hash table iteration
Brendan Hansen [Thu, 14 May 2020 15:40:30 +0000 (10:40 -0500)]
Added hash table iteration

5 years agoAdded hashtable implementation and working on strings
Brendan Hansen [Wed, 13 May 2020 20:00:23 +0000 (15:00 -0500)]
Added hashtable implementation and working on strings