Advertisement
Guest User

Untitled

a guest
Feb 26th, 2020
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. class MyLang2Cpp{//Translator: Tanslare in C++
  2. bin 'cpp' \ db '#include <iostream>', 10, 'int main()', 10, '{', 10
  3. class line L {db [/'',L,';'/], 10}
  4. class Var1 v=i {db [/'int ',v,=,i,';'/], 10}
  5. class Var1 v {db [/'int ',v,';'/], 10}
  6. class line SL? .. V {Var1 V}
  7. class line ShowThis? .. v {db [/'std::cout<<',v,';'/], 10}
  8. class line ShowThis <Give value to: > {db [/'std::cout>>','"Give value to: "',';'/], 10}
  9. class line ReadThis? v {db [/'std::cin>>',v,';'/], 10}
  10. class done {db 'return 0;', 10, '}',10}
  11. }
  12. MyLang2Cpp
  13.  
  14. SL a
  15. ShowThis <Give value to: >
  16. ReadThis a
  17. SL b = a
  18. SL c = 3
  19. a = b + c
  20. SL d = 1
  21. a = a + d
  22. ShowThis d
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement