Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Commit

Permalink
Testing read/write new keyword parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulKlint committed Nov 4, 2024
1 parent 7e90983 commit 0eaa7f9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 18 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
module lang::rascalcore::compile::Examples::Tst0

import ValueIO;
import IO;

data D = d1(int n);








public int f(int n) = n;

public int g() = 42;
void main(){
v = d1(42);
writeBinaryValueFile(|home:///tmp.txt|, v);
println("written <v>");
}
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
module lang::rascalcore::compile::Examples::Tst1

import lang::rascalcore::compile::Examples::Tst0;
import ValueIO;
import IO;

data D(bool K = false) = d1(int n);







public int T1 = f(3);
void main(){
v = readBinaryValueFile(#D, |home:///tmp.txt|);
println("K = <v.K>, <v.K?>");
}

0 comments on commit 0eaa7f9

Please sign in to comment.