Skip to content

Instantly share code, notes, and snippets.

@ufobat
Created December 19, 2016 15:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ufobat/79ed9c77a7b07d548c20d336f12c9e27 to your computer and use it in GitHub Desktop.
Save ufobat/79ed9c77a7b07d548c20d336f12c9e27 to your computer and use it in GitHub Desktop.
┌─[martin@psyche] - [~/.workspace/p6/p6-XML-XPath] - [Mo Dez 19, 16:27]
└─[$] <git:(master*)> perl6 -Ilib -e 'use XML::XPath::Grammar; XML::XPath::Grammar.parse("/foo")'
TOP
> ?
r run (until breakpoint, if any)
<enter> single step
rf run until a match fails
r <name> run until rule <name> is reached
bp add <name> add a rule name breakpoint
bp list list all active rule name breakpoints
bp rm <name> remove a rule name breakpoint
bp rm removes all breakpoints
q quit
>
| Expr
>
| | OrExpr
>
| | | AndExpr
>
| | | | EqualityExpr
>
| | | | | RelationalExpr
>
| | | | | | AdditiveExpr
>
| | | | | | | MultiplicativeExpr
>
| | | | | | | | UnaryExpr
>
| | | | | | | | | UnionExpr
>
| | | | | | | | | | PathExpr
>
| | | | | | | | | | | LocationPath
>
| | | | | | | | | | | | RelativeLocationPath
>
| | | | | | | | | | | | | Step
>
| | | | | | | | | | | | | | AxisSpecifier
>
| | | | | | | | | | | | | | | AxisName
>
| | | | | | | | | | | | | | | * FAIL
>
| | | | | | | | | | | | | | | AbbreviatedAxisSpecifier
>
| | | | | | | | | | | | | | | * MATCH ""
>
| | | | | | | | | | | | | | * MATCH ""
>
| | | | | | | | | | | | | | NodeTest
>
| | | | | | | | | | | | | | | NameTest
>
No such method 'NCName' for invocant of type 'XML::XPath::Grammar'
in regex NameTest at /home/martin/.workspace/p6/p6-XML-XPath/lib/XML/XPath/Grammar.pm6 (XML::XPath::Grammar) line 234
in block at /home/martin/.rakudobrew/moar-2016.11/install/share/perl6/site/sources/649BC7002104B07ED02D7B62927521BA78F32F46 (Grammar::Debugger) line 63
in regex NodeTest at /home/martin/.workspace/p6/p6-XML-XPath/lib/XML/XPath/Grammar.pm6 (XML::XPath::Grammar) line 56
in block at /home/martin/.rakudobrew/moar-2016.11/install/share/perl6/site/sources/649BC7002104B07ED02D7B62927521BA78F32F46 (Grammar::Debugger) line 63
in regex Step at /home/martin/.workspace/p6/p6-XML-XPath/lib/XML/XPath/Grammar.pm6 (XML::XPath::Grammar) line 27
in block at /home/martin/.rakudobrew/moar-2016.11/install/share/perl6/site/sources/649BC7002104B07ED02D7B62927521BA78F32F46 (Grammar::Debugger) line 63
in regex RelativeLocationPath at /home/martin/.workspace/p6/p6-XML-XPath/lib/XML/XPath/Grammar.pm6 (XML::XPath::Grammar) line 20
in block at /home/martin/.rakudobrew/moar-2016.11/install/share/perl6/site/sources/649BC7002104B07ED02D7B62927521BA78F32F46 (Grammar::Debugger) line 63
in regex LocationPath at /home/martin/.workspace/p6/p6-XML-XPath/lib/XML/XPath/Grammar.pm6 (XML::XPath::Grammar) line 8
in block at /home/martin/.rakudobrew/moar-2016.11/install/share/perl6/site/sources/649BC7002104B07ED02D7B62927521BA78F32F46 (Grammar::Debugger) line 63
in regex PathExpr at /home/martin/.workspace/p6/p6-XML-XPath/lib/XML/XPath/Grammar.pm6 (XML::XPath::Grammar) line 114
in block at /home/martin/.rakudobrew/moar-2016.11/install/share/perl6/site/sources/649BC7002104B07ED02D7B62927521BA78F32F46 (Grammar::Debugger) line 63
in regex UnionExpr at /home/martin/.workspace/p6/p6-XML-XPath/lib/XML/XPath/Grammar.pm6 (XML::XPath::Grammar) line 108
in block at /home/martin/.rakudobrew/moar-2016.11/install/share/perl6/site/sources/649BC7002104B07ED02D7B62927521BA78F32F46 (Grammar::Debugger) line 63
in regex UnaryExpr at /home/martin/.workspace/p6/p6-XML-XPath/lib/XML/XPath/Grammar.pm6 (XML::XPath::Grammar) line 171
in block at /home/martin/.rakudobrew/moar-2016.11/install/share/perl6/site/sources/649BC7002104B07ED02D7B62927521BA78F32F46 (Grammar::Debugger) line 63
in regex MultiplicativeExpr at /home/martin/.workspace/p6/p6-XML-XPath/lib/XML/XPath/Grammar.pm6 (XML::XPath::Grammar) line 163
in block at /home/martin/.rakudobrew/moar-2016.11/install/share/perl6/site/sources/649BC7002104B07ED02D7B62927521BA78F32F46 (Grammar::Debugger) line 63
in regex AdditiveExpr at /home/martin/.workspace/p6/p6-XML-XPath/lib/XML/XPath/Grammar.pm6 (XML::XPath::Grammar) line 156
in block at /home/martin/.rakudobrew/moar-2016.11/install/share/perl6/site/sources/649BC7002104B07ED02D7B62927521BA78F32F46 (Grammar::Debugger) line 63
in regex RelationalExpr at /home/martin/.workspace/p6/p6-XML-XPath/lib/XML/XPath/Grammar.pm6 (XML::XPath::Grammar) line 147
in block at /home/martin/.rakudobrew/moar-2016.11/install/share/perl6/site/sources/649BC7002104B07ED02D7B62927521BA78F32F46 (Grammar::Debugger) line 63
in regex EqualityExpr at /home/martin/.workspace/p6/p6-XML-XPath/lib/XML/XPath/Grammar.pm6 (XML::XPath::Grammar) line 140
in block at /home/martin/.rakudobrew/moar-2016.11/install/share/perl6/site/sources/649BC7002104B07ED02D7B62927521BA78F32F46 (Grammar::Debugger) line 63
in regex AndExpr at /home/martin/.workspace/p6/p6-XML-XPath/lib/XML/XPath/Grammar.pm6 (XML::XPath::Grammar) line 134
in block at /home/martin/.rakudobrew/moar-2016.11/install/share/perl6/site/sources/649BC7002104B07ED02D7B62927521BA78F32F46 (Grammar::Debugger) line 63
in regex OrExpr at /home/martin/.workspace/p6/p6-XML-XPath/lib/XML/XPath/Grammar.pm6 (XML::XPath::Grammar) line 128
in block at /home/martin/.rakudobrew/moar-2016.11/install/share/perl6/site/sources/649BC7002104B07ED02D7B62927521BA78F32F46 (Grammar::Debugger) line 63
in regex Expr at /home/martin/.workspace/p6/p6-XML-XPath/lib/XML/XPath/Grammar.pm6 (XML::XPath::Grammar) line 85
in block at /home/martin/.rakudobrew/moar-2016.11/install/share/perl6/site/sources/649BC7002104B07ED02D7B62927521BA78F32F46 (Grammar::Debugger) line 63
in regex TOP at /home/martin/.workspace/p6/p6-XML-XPath/lib/XML/XPath/Grammar.pm6 (XML::XPath::Grammar) line 5
in block at /home/martin/.rakudobrew/moar-2016.11/install/share/perl6/site/sources/649BC7002104B07ED02D7B62927521BA78F32F46 (Grammar::Debugger) line 63
in block <unit> at -e line 1
┌─[martin@psyche] - [~/.workspace/p6/p6-XML-XPath] - [Mo Dez 19, 16:28]
└─[$] <git:(master*)>
┌─[martin@psyche] - [~/.workspace/p6/p6-XML-XPath] - [Mo Dez 19, 16:28]
└─[$] <git:(master*)> # removed Grammar::Debugger
┌─[martin@psyche] - [~/.workspace/p6/p6-XML-XPath] - [Mo Dez 19, 16:30]
└─[$] <git:(master*)> time perl6 -Ilib -e 'use XML::XPath::Grammar; XML::XPath::Grammar.parse("/foo")'
^C
perl6 -Ilib -e 'use XML::XPath::Grammar; XML::XPath::Grammar.parse("/foo")' 78,19s user 1,66s system 99% cpu 1:20,09 total
┌─[martin@psyche] - [~/.workspace/p6/p6-XML-XPath] - [Mo Dez 19, 16:31]
└─[$] <git:(master*)>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment