Advertisement
tinyevil

Untitled

Jun 29th, 2018
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. namespace Foo
  2. {
  3. x: i32 = number of members in this namespace;
  4. }
  5.  
  6. namespace Foo
  7. {
  8. struct Bar
  9. {
  10. }
  11.  
  12. generate serialization function for bar in this namespace
  13. }
  14.  
  15. /// VVVV
  16.  
  17. file script:
  18. %Foo = create_namespace "Foo" combined_script(foo_script1, foo_script2)
  19.  
  20. foo_script:
  21. create_variable "x" x_type_script x_value_script
  22.  
  23. x_type_script:
  24. resolve "i32"
  25.  
  26. x_value_script:
  27. get_member_count %Foo
  28.  
  29. foo_script2:
  30. %Bar = create_struct "Bar" bar_script
  31. invoke_macro generate_serialization(%Bar)
  32.  
  33. bar_script:
  34. do nothing
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement