Skip to content

Commit

Permalink
wip, starting codegen
Browse files Browse the repository at this point in the history
  • Loading branch information
ghaith committed Feb 6, 2025
1 parent d2aa5da commit bf03317
Show file tree
Hide file tree
Showing 3 changed files with 433 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/lit/single/methods/fb_with_super_class.st
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ END_FUNCTION_BLOCK

FUNCTION main: DINT
VAR
s: STRING;
fb: bar;
END_VAR
fb.baz(); // CHECK: hello
fb(); // CHECK: world
fb.baz();
printf('%s$N', REF(fb.s)); // CHECK: hello
fb();
printf('%s$N', REF(fb.s)); // CHECK: world
END_FUNCTION
17 changes: 17 additions & 0 deletions tests/test_utils/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[package]
name = "test_utils"
version = "0.1.0"
edition = "2021"

[dependencies]
driver = { path = "../../compiler/plc_driver/", package = "plc_driver" }
project = { path = "../../compiler/plc_project/", package = "plc_project", features = [
"integration",
] }
plc_lowering = { path = "../../compiler/plc_lowering"}
plc = {path = "../..", package = "rusty"}
plc_source = { path = "../../compiler/plc_source" }
plc_ast = { path = "../../compiler/plc_ast" }
plc_util = { path = "../../compiler/plc_util" }
plc_diagnostics = { path = "../../compiler/plc_diagnostics" }
plc_index = { path = "../../compiler/plc_index" }
Loading

0 comments on commit bf03317

Please sign in to comment.