summaryrefslogtreecommitdiff
path: root/vaporize/tests_easy
diff options
context:
space:
mode:
authorbd-912 <bdunahu@colostate.edu>2024-04-02 23:23:06 -0600
committerbd-912 <bdunahu@colostate.edu>2024-04-02 23:23:06 -0600
commit0ae01301d572b2e69585c4d1cb753ed7fc89dfe3 (patch)
treeaf2923bdaf9f0810f780634af39816c87e902eae /vaporize/tests_easy
parent35b1ec663c4bf233c1beba823d2c2ebd2759289e (diff)
Store SymTable child information as an array of strings
Diffstat (limited to 'vaporize/tests_easy')
-rw-r--r--vaporize/tests_easy/ex1.java11
-rw-r--r--vaporize/tests_easy/ex1.vapor5
-rw-r--r--vaporize/tests_easy/ex2.java7
-rw-r--r--vaporize/tests_easy/ex2.vapor11
4 files changed, 34 insertions, 0 deletions
diff --git a/vaporize/tests_easy/ex1.java b/vaporize/tests_easy/ex1.java
new file mode 100644
index 0000000..22f0aa0
--- /dev/null
+++ b/vaporize/tests_easy/ex1.java
@@ -0,0 +1,11 @@
+class ex1{
+ public static void main(String[] a){
+ System.out.println(1);
+ }
+}
+
+class A {
+ public int foo() {
+ return 1 ;
+ }
+}
diff --git a/vaporize/tests_easy/ex1.vapor b/vaporize/tests_easy/ex1.vapor
new file mode 100644
index 0000000..bcfb38c
--- /dev/null
+++ b/vaporize/tests_easy/ex1.vapor
@@ -0,0 +1,5 @@
+const functable_A
+ :A_foo
+
+func A_foo(this)
+ ret \ No newline at end of file
diff --git a/vaporize/tests_easy/ex2.java b/vaporize/tests_easy/ex2.java
new file mode 100644
index 0000000..986ca7d
--- /dev/null
+++ b/vaporize/tests_easy/ex2.java
@@ -0,0 +1,7 @@
+class A {
+ void foo() { }
+}
+
+class B {
+ void bar() { }
+}
diff --git a/vaporize/tests_easy/ex2.vapor b/vaporize/tests_easy/ex2.vapor
new file mode 100644
index 0000000..25811b3
--- /dev/null
+++ b/vaporize/tests_easy/ex2.vapor
@@ -0,0 +1,11 @@
+const functable_A
+ :A_foo
+
+const functable_B
+ :B_bar
+
+func A_foo (this)
+ ret
+
+func B_bar(this)
+ ret \ No newline at end of file