Advertisement
Xliff

DDT Match Reporting differences

Mar 22nd, 2016
479
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.10 KB | None | 0 0
  1. my regex xxx { $<t1> = aa $<t2> = a a } ;
  2. > my $dump_1 = $d.get_dump(title => "$string ~~ " ~ 'xxx', $string ~~ m:g/<xxx>/ );
  3. aaaaaaaa ~~ xxx (2) @0 (List|215006672:DDT:-1254517668)
  4. |- 0 = 'aaaa' [0..4|.Match @1 (Match|xxx(Match|t1(Match)t2(Match)):DDT:-1254516752)
  5. | `- xxx => 'aaaa' [0..4|.Match @2 (Match|t1(Match)t2(Match):DDT:-1254515940)
  6. | |- t1 => 'a' [0..1|.Match @3 (Match:DDT:-1254515032)
  7. | `- t2 => 'a' [2..3|.Match @4 (Match:DDT:-1254514480)
  8. `- 1 = 'aaaa' [4..8|.Match @5 (Match|xxx(Match|t1(Match)t2(Match)):DDT:-1254513016)
  9. `- xxx => 'aaaa' [4..8|.Match @6 (Match|t1(Match)t2(Match):DDT:-1254512204)
  10. |- t1 => 'a' [4..5|.Match @7 (Match:DDT:-1254511296)
  11. `- t2 => 'a' [6..7|.Match @8 (Match:DDT:-1254510744)
  12.  
  13. ======= Note extra elements for $dump_2 =======
  14.  
  15. my regex yyy { ($<t1> = [aa] ) ($<t2> = a) a } ;
  16. > my $dump_2 = $d.get_dump(color => False, title => "$string ~~ " ~ 'yyy', $string ~~ m:g/<yyy>/ );
  17. aaaaaaaa ~~ yyy (2) @0 (List|198521408:DDT:-1253000904)
  18. |- 0 =
  19. | | 'aaaa' [0..4|
  20. | | .Match
  21. | | @1
  22. | | (Match|yyy(Match|(Match|t1(Match))(Match|t2(Match))|(Array|214945352)):DDT:-125299
  23. | | 9988)
  24. | `- yyy =>
  25. | | 'aaaa' [0..4|
  26. | | .Match
  27. | | @2 (Match|(Match|t1(Match))(Match|t2(Match))|(Array|214945352):DDT:-1252999176)
  28. | |- 0 => 'aa' [0..2|.Match @3 (Match|t1(Match):DDT:-1252997744)
  29. | | `- t1 => 'aa' [0..2|.Match @4 (Match:DDT:-1252996932)
  30. | `- 1 => 'a' [2..3|.Match @5 (Match|t2(Match):DDT:-1252996168)
  31. | `- t2 => 'a' [2..3|.Match @6 (Match:DDT:-1252995356)
  32. `- 1 =
  33. | 'aaaa' [4..8|
  34. | .Match
  35. | @7
  36. | (Match|yyy(Match|(Match|t1(Match))(Match|t2(Match))|(Array|214945392)):DDT:-125299
  37. | 3356)
  38. `- yyy =>
  39. | 'aaaa' [4..8|
  40. | .Match
  41. | @8 (Match|(Match|t1(Match))(Match|t2(Match))|(Array|214945392):DDT:-1252992544)
  42. |- 0 => 'aa' [4..6|.Match @9 (Match|t1(Match):DDT:-1227329040)
  43. | `- t1 => 'aa' [4..6|.Match @10 (Match:DDT:-1227329212)
  44. `- 1 => 'a' [6..7|.Match @11 (Match|t2(Match):DDT:-1227329520)
  45. `- t2 => 'a' [6..7|.Match @12 (Match:DDT:-1227329924)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement