Irmen de Jong
|
9f6106452e
|
revert & to untyped pointer, added && for typed pointer address-of
|
2025-07-07 16:17:07 +02:00 |
|
Irmen de Jong
|
f9fbfe30e3
|
fix &x +/- offset pointer arithmetic expression
|
2025-07-07 13:11:57 +02:00 |
|
Irmen de Jong
|
2a4a3b786e
|
cleanup error message for currently unsupported deref'd pointer assignments
|
2025-07-06 14:59:42 +02:00 |
|
Irmen de Jong
|
b4e0a2019e
|
fixed assignment to a[i]^^
|
2025-07-06 13:38:22 +02:00 |
|
Irmen de Jong
|
e14c3f8b59
|
code cleanups
|
2025-07-06 00:52:37 +02:00 |
|
Irmen de Jong
|
54d41b7f6f
|
fixed a[i]^^
|
2025-07-05 23:54:08 +02:00 |
|
Irmen de Jong
|
c71066af4c
|
fixing name lookup issue
|
2025-06-16 22:15:51 +02:00 |
|
Irmen de Jong
|
6f0a0981bd
|
fixing name lookup issue
|
2025-06-16 00:21:54 +02:00 |
|
Irmen de Jong
|
49a4d9ba37
|
allow str as struct field type (^^ubyte) and strings in struct initializers
|
2025-06-15 00:29:59 +02:00 |
|
Irmen de Jong
|
26fbbf48a4
|
adapt new antlr visitor to the pointer/struct additions
|
2025-06-03 01:28:58 +02:00 |
|
Irmen de Jong
|
d5cc414221
|
Merge branch 'master' into structs
# Conflicts:
# codeOptimizers/src/prog8/optimizer/StatementOptimizer.kt
# compiler/src/prog8/compiler/astprocessing/CodeDesugarer.kt
# compilerAst/src/prog8/ast/antlr/Antlr2Kotlin.kt
# examples/test.p8
|
2025-06-02 20:52:50 +02:00 |
|
Irmen de Jong
|
15fc3b6c04
|
replace old antlr2kotlin code with the new visitor-based translator
|
2025-06-02 01:56:07 +02:00 |
|
Irmen de Jong
|
0456badd02
|
creating on a new visitor-based antlr to kotlin translator
|
2025-06-02 01:18:07 +02:00 |
|
Irmen de Jong
|
8e7bbcdbe0
|
clear syntax error for yet unsupported deref after array indexing
|
2025-05-29 21:14:38 +02:00 |
|
Irmen de Jong
|
8a0c02e264
|
Merge branch 'refs/heads/master' into structs
# Conflicts:
# codeCore/src/prog8/code/target/NormalMemSizer.kt
# codeCore/src/prog8/code/target/VMTarget.kt
# compiler/src/prog8/compiler/BuiltinFunctions.kt
# compilerAst/src/prog8/ast/antlr/Antlr2Kotlin.kt
# examples/test.p8
|
2025-05-29 13:42:16 +02:00 |
|
Irmen de Jong
|
3b1b0985c1
|
make sizeof(float) work, so you don't have to use sys.SIZEOF_FLOAT anymore etc.
define sys.SIZEOF_FLOAT in terms of sizeof(float)
|
2025-05-29 12:38:03 +02:00 |
|
Irmen de Jong
|
4c0e6e2640
|
fix split/nosplit pointer arrays, replace ubyteptr^^ with @(ubyteptr), fix double dereference
|
2025-05-29 00:36:55 +02:00 |
|
Irmen de Jong
|
86da9d3c7e
|
assigning to plain pointer with array indexing
|
2025-05-28 18:08:53 +02:00 |
|
Irmen de Jong
|
4e61e25c02
|
Merge branch 'master' into structs
# Conflicts:
# compiler/test/TestTypecasts.kt
|
2025-05-27 23:52:59 +02:00 |
|
Irmen de Jong
|
368387e1a7
|
allow floats to be (explicitly) cast to integers
|
2025-05-26 21:39:48 +02:00 |
|
Irmen de Jong
|
5c02e2bd71
|
fix a ptr indexing case, fix address-of fields
|
2025-05-25 21:32:31 +02:00 |
|
Irmen de Jong
|
fb01389b3d
|
cleaning up pointer deref
|
2025-05-25 18:33:37 +02:00 |
|
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 |
|