Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class MyLang2Cpp{//Translator: Tanslare in C++
- bin 'cpp' \ db '#include <iostream>', 10, 'int main()', 10, '{', 10
- class line L {db [/'',L,';'/], 10}
- class Var1 v=i {db [/'int ',v,=,i,';'/], 10}
- class Var1 v {db [/'int ',v,';'/], 10}
- class line SL? .. V {Var1 V}
- class line ShowThis? .. v {db [/'std::cout<<',v,';'/], 10}
- class line ShowThis <Give value to: > {db [/'std::cout>>','"Give value to: "',';'/], 10}
- class line ReadThis? v {db [/'std::cin>>',v,';'/], 10}
- class done {db 'return 0;', 10, '}',10}
- }
- MyLang2Cpp
- SL a
- ShowThis <Give value to: >
- ReadThis a
- SL b = a
- SL c = 3
- a = b + c
- SL d = 1
- a = a + d
- ShowThis d
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement