Guest User

Untitled

a guest
Nov 7th, 2015
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. use v6;
  2. use lib 'piko/perl6-gumbo/lib', '.';
  3. use Gumbo::Binding;
  4. use TestStructSize;
  5. my @headers = <gumbo.h>;
  6. my @libs = <-lgumbo>;
  7.  
  8.  
  9. my gumbo_output_s $m = gumbo_output_s.new;
  10. my gumbo_element_s $e = gumbo_element_s.new;
  11.  
  12. say $e.perl;
  13. say $m.perl;
  14. #my %typ = ("GumboOutput" => gumbo_ouput_s, "GumboNode" => gumbo_node_s);
  15.  
  16. root@testperl6:~# perl6 ttstructsize.p6
  17. gumbo_element_s.new(children => gumbo_vector_s, tag => 0, tag_namespace => 0, original_tag => gumbo_string_piece_s, original_end_tag => gumbo_string_piece_s, start_pos => gumbo_source_position, end_pos => gumbo_source_position, attributes => gumbo_vector_s)
  18. gumbo_output_s.new(document => gumbo_node_t, root => gumbo_node_t, errors => gumbo_vector_s)
  19. root@testperl6:~# perl6 ttstructsize.p6
  20. ===SORRY!=== Error while compiling ttstructsize.p6
  21. Undeclared routine:
  22. gumbo_ouput_s used at line 14
Advertisement
Add Comment
Please, Sign In to add comment