Irmen de Jong
|
aaa81210ce
|
cleaning up pointer indexing
|
2025-05-25 02:56:32 +02:00 |
|
Irmen de Jong
|
51269257ea
|
fix a.b.c.d desugaring into pointer deref chain
|
2025-05-24 14:48:02 +02:00 |
|
Irmen de Jong
|
db6c887795
|
Merge branch 'master' into structs
# Conflicts:
# compiler/test/ast/TestVariousCompilerAst.kt
|
2025-05-21 00:27:45 +02:00 |
|
Irmen de Jong
|
cf7bea0985
|
cleanup RTS insertion and ast postprocessing before assembly generation
|
2025-05-21 00:19:50 +02:00 |
|
Irmen de Jong
|
61fe55168a
|
Merge branch 'master' into structs
# Conflicts:
# codeGenIntermediate/src/prog8/codegen/intermediate/AssignmentGen.kt
# codeGenIntermediate/src/prog8/codegen/intermediate/ExpressionGen.kt
# examples/test.p8
|
2025-05-20 22:35:04 +02:00 |
|
Irmen de Jong
|
c726d3f937
|
fix ptr errors
|
2025-05-19 22:49:07 +02:00 |
|
Irmen de Jong
|
f70341df1b
|
fix ptr errors
|
2025-05-19 20:06:31 +02:00 |
|
Irmen de Jong
|
f0b791452e
|
fix many ptr deref errors
|
2025-05-19 01:33:57 +02:00 |
|
Irmen de Jong
|
adf5600a9b
|
simplify
|
2025-05-18 18:37:19 +02:00 |
|
Irmen de Jong
|
6d4ccc5feb
|
fix pointer variable not getting marked as used in some cases
|
2025-05-18 13:23:56 +02:00 |
|
Irmen de Jong
|
5f3829d5cc
|
partly fix weird errors for ptr indexed expressions
|
2025-05-17 22:56:41 +02:00 |
|
Irmen de Jong
|
96f690e749
|
fix a ptr indexing error
|
2025-05-17 20:27:38 +02:00 |
|
Irmen de Jong
|
eabdd3a8f3
|
fix the ptr.uword[index] assignment target error
|
2025-05-17 14:57:24 +02:00 |
|
Irmen de Jong
|
65e34d4989
|
stricter types for & operator (address-of), and fix invalid recursive subroutine flagging related to struct definition
|
2025-05-17 11:32:54 +02:00 |
|
Irmen de Jong
|
686b32dc29
|
replace ^^str by ^^ubyte and allow returning ubyte/uword when pointer is expected
|
2025-05-16 17:53:15 +02:00 |
|
Irmen de Jong
|
11456496bd
|
Merge branch 'master' into structs
# Conflicts:
# compilerAst/src/prog8/ast/antlr/Antlr2Kotlin.kt
# parser/src/main/antlr/Prog8ANTLR.g4
|
2025-05-15 21:35:31 +02:00 |
|
Irmen de Jong
|
f5fc4e345c
|
fix build error on case-insensitive filesystems
|
2025-05-15 21:11:34 +02:00 |
|
Irmen de Jong
|
f4b2264fcf
|
fix struct type checks for subroutine call arguments
|
2025-05-14 23:33:55 +02:00 |
|
Irmen de Jong
|
913ab03963
|
get rid of invalid ARRAY_STRUCT data type (arrays of struct instance are not yet supported)
|
2025-05-14 20:43:00 +02:00 |
|
Irmen de Jong
|
38448e471c
|
Merge branch 'master' into structs
# Conflicts:
# codeGenCpu6502/src/prog8/codegen/cpu6502/ForLoopsAsmGen.kt
# codeGenIntermediate/src/prog8/codegen/intermediate/IRCodeGen.kt
# examples/test.p8
|
2025-05-13 23:42:13 +02:00 |
|
Irmen de Jong
|
435dfbb932
|
optimize: rewrite suitable when into on..goto
|
2025-05-13 01:12:58 +02:00 |
|
Irmen de Jong
|
924e28e9b3
|
Merge branch 'master' into structs
# Conflicts:
# codeGenCpu6502/src/prog8/codegen/cpu6502/AsmGen.kt
# compiler/src/prog8/compiler/astprocessing/CodeDesugarer.kt
# compiler/src/prog8/compiler/astprocessing/SimplifiedAstMaker.kt
# compilerAst/src/prog8/ast/AstToSourceTextConverter.kt
# compilerAst/src/prog8/ast/antlr/Antlr2Kotlin.kt
# compilerAst/src/prog8/ast/walk/AstWalker.kt
# compilerAst/src/prog8/ast/walk/IAstVisitor.kt
# docs/source/todo.rst
# examples/test.p8
# parser/src/main/antlr/Prog8ANTLR.g4
|
2025-05-11 23:23:06 +02:00 |
|
Irmen de Jong
|
31c1bf8bc5
|
added on..goto/call statement
|
2025-05-11 21:37:44 +02:00 |
|
Irmen de Jong
|
abbb7d7ba3
|
fix struct pointers in subroutine parameters and return values
|
2025-05-11 02:08:59 +02:00 |
|
Irmen de Jong
|
59c378089e
|
fix some struct type and symbol lookup errors
|
2025-05-11 00:52:35 +02:00 |
|
Irmen de Jong
|
8353c689ca
|
start making '&' (address-of) return a typed pointer, fixes some errors
|
2025-05-08 23:40:41 +02:00 |
|
Irmen de Jong
|
af920d1427
|
pointer arithmetic for '-', fixed '+'
|
2025-05-05 21:06:49 +02:00 |
|
Irmen de Jong
|
38949b82c3
|
type check tuning
|
2025-05-05 15:41:32 +02:00 |
|
Irmen de Jong
|
d11386ef26
|
type check tuning
|
2025-05-04 23:23:21 +02:00 |
|
Irmen de Jong
|
55e0dbab27
|
preparing for statically allocating struct instances
|
2025-05-03 23:44:29 +02:00 |
|
Irmen de Jong
|
4dc82f2c83
|
preparing for statically allocating struct instances
|
2025-05-03 19:00:27 +02:00 |
|
Irmen de Jong
|
1ba5587404
|
allow syntax for declaring variables with struct instance type
|
2025-05-03 16:14:22 +02:00 |
|
Irmen de Jong
|
835c4b6da3
|
allow multi-field declarations in structs, get rid of . -> ^^ rewrite
|
2025-05-03 12:32:29 +02:00 |
|
Irmen de Jong
|
dbd955b61e
|
tweak typecheck and better code for constant indexes in pointer derefs
|
2025-05-02 23:44:26 +02:00 |
|
Irmen de Jong
|
e0dea89477
|
added support for ptr[x].field
|
2025-05-02 22:16:20 +02:00 |
|
Irmen de Jong
|
6fc2902895
|
fixing ptr traversal typecheck issues
|
2025-05-02 00:41:42 +02:00 |
|
Irmen de Jong
|
c96e4b40d4
|
building syntax support for ptr[x].field
attempting to do this by making '.' an expression operator
|
2025-05-02 00:41:42 +02:00 |
|
Irmen de Jong
|
37da3e2170
|
parser
|
2025-05-02 00:41:42 +02:00 |
|
Irmen de Jong
|
2661d3c489
|
allow array syntax on pointers
|
2025-05-02 00:41:42 +02:00 |
|
Irmen de Jong
|
696bf636ed
|
better parsing of directive names results in better error messages when an invalid one is found
|
2025-05-02 00:41:42 +02:00 |
|
Irmen de Jong
|
0162e7a0c1
|
fix the scoping problems on subtypes
|
2025-05-02 00:41:42 +02:00 |
|
Irmen de Jong
|
63a410a6df
|
implicit cast to bool for numeric or pointers as condition arguments (to if, while, until)
|
2025-05-02 00:41:42 +02:00 |
|
Irmen de Jong
|
803e6bd81a
|
fix uword vs pointer type errors and casts
|
2025-05-02 00:41:42 +02:00 |
|
Irmen de Jong
|
b920d553a0
|
make address-of dereference work
|
2025-05-02 00:41:42 +02:00 |
|
Irmen de Jong
|
5e2d0d0dfc
|
fix param order of AssignTarget
|
2025-05-02 00:41:42 +02:00 |
|
Irmen de Jong
|
2ae3bd68eb
|
more pointer dereferencing for chains
|
2025-05-02 00:41:42 +02:00 |
|
Irmen de Jong
|
9c183f27eb
|
pointer dereferencing for chains
|
2025-05-02 00:41:42 +02:00 |
|
Irmen de Jong
|
8046023e82
|
pointer dereferencing for simple types (read and write)
|
2025-05-02 00:41:42 +02:00 |
|
Irmen de Jong
|
e328520588
|
initial struct and typed pointer support
|
2025-05-02 00:41:40 +02:00 |
|
Irmen de Jong
|
b047731f82
|
removed some redundant arguments
|
2025-04-25 23:27:06 +02:00 |
|