+examples

This commit is contained in:
anon 2023-02-14 02:33:58 +01:00
parent e2fa2f25ae
commit 42edb95f6f
3 changed files with 21 additions and 0 deletions

13
examples/Makefile Normal file
View File

@ -0,0 +1,13 @@
ex1_e:
../plug -f ex1.txt -d hw 'hello world' -g hw
cat ex1.txt
ex1_c:
../plug -f ex1.txt -u hw
cat ex1.txt
ex2_e:
../plug -f ex2.cpp -d code ' puts(hello world);' -g code
cat ex2.cpp
ex2_c:
../plug -f ex2.cpp -u code
cat ex2.cpp

3
examples/ex1.txt Normal file
View File

@ -0,0 +1,3 @@
original text
#placeholder<hw> COLLAPSED
some more original text

5
examples/ex2.cpp Normal file
View File

@ -0,0 +1,5 @@
#include <stdio.h>
signed main(){
// #placeholder<code> COLLAPSED
return 0;
}