This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
# Copyright 2012 Jeffrey Kegler | |
# This file is part of Marpa::R2. Marpa::R2 is free software: you can | |
# redistribute it and/or modify it under the terms of the GNU Lesser | |
# General Public License as published by the Free Software Foundation, | |
# either version 3 of the License, or (at your option) any later version. | |
# | |
# Marpa::R2 is distributed in the hope that it will be useful, | |
# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
# Copyright 2012 Jeffrey Kegler | |
# This file is part of Marpa::R2. Marpa::R2 is free software: you can | |
# redistribute it and/or modify it under the terms of the GNU Lesser | |
# General Public License as published by the Free Software Foundation, | |
# either version 3 of the License, or (at your option) any later version. | |
# | |
# Marpa::R2 is distributed in the hope that it will be useful, | |
# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
# Copyright 2013 Jeffrey Kegler, part of Marpa::R2. Marpa::R2 is free software: you can | |
# redistribute it and/or modify it under the terms of the GNU Lesser | |
# General Public License as published by the Free Software Foundation, | |
# either version 3 of the License, or (at your option) any later version. | |
# | |
# Marpa::R2 is distributed in the hope that it will be useful, | |
# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
# Lesser General Public License for more details. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
# Copyright 2013 Jeffrey Kegler | |
# This file is part of Marpa::R2. Marpa::R2 is free software: you can | |
# redistribute it and/or modify it under the terms of the GNU Lesser | |
# General Public License as published by the Free Software Foundation, | |
# either version 3 of the License, or (at your option) any later version. | |
# | |
# Marpa::R2 is distributed in the hope that it will be useful, | |
# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ambiguities via ASF's ambiguities_show() | |
Ambiguous symch at Glade=7, Symbol=<sentence>: | |
The ambiguity is from line 1, column 1 to line 1, column 25 | |
Text is: Time flies like an arrow. | |
There are 2 symches | |
Symch 0 is a rule: sentence ::= subject verb adjunct period | |
Symch 1 is a rule: sentence ::= subject verb object period | |
Ambiguous symch at Glade=5, Symbol=<sentence>: | |
The ambiguity is from line 3, column 1 to line 3, column 26 | |
Text is: Fruit flies like a banana. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# s = subject, v = verb, o = object, adju = adjunct | |
# adje = adjective, adv = avderb, n = noun, art = article | |
sva(s(n(Time));v(flies);adju(pr(like);o(art(an);n(arrow)))) | |
sva(s(n(Time));v(flies);adju(adv(fast))) | |
svo(s(adje(Fruit);n(flies));v(like);o(art(a);n(banana))) | |
svo(s(adje(Fruit);n(flies));v(spoil);o(art(a);n(banana))) | |
svo(s(adje(Time);n(flies));v(like);o(art(an);n(arrow))) | |
sva(s(n(Time));v(flies);adju(adv(fast))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ambiguities via ASF's ambiguities_show() | |
Ambiguous symch at Glade=7, Symbol=<sentence>: | |
The ambiguity is from line 1, column 1 to line 1, column 21 | |
Text is: Time flies like an ar | |
There are 2 symches | |
Symch 0 is a rule: sentence ::= subject verb adjunct period | |
Symch 1 is a rule: sentence ::= subject verb object period | |
Ambiguous symch at Glade=5, Symbol=<sentence>: | |
The ambiguity is from line 2, column 10 to line 3, column 14 | |
Text is: s fast.\nFruit flies l |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
# Copyright 2013 Jeffrey Kegler | |
# This file is part of Marpa::R2. Marpa::R2 is free software: you can | |
# redistribute it and/or modify it under the terms of the GNU Lesser | |
# General Public License as published by the Free Software Foundation, | |
# either version 3 of the License, or (at your option) any later version. | |
# | |
# Marpa::R2 is distributed in the hope that it will be useful, | |
# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use 5.010; | |
use strict; | |
use warnings; | |
use Data::Dumper; | |
use Marpa::R2; | |
my $g = Marpa::R2::Scanless::G->new( { | |
bless_package => 'main', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
C:\.cpan\build\Marpa-R2-2.079_008>vsvars32.bat && mp18 Build --XS-debug test | |
Setting environment for using Microsoft Visual Studio .NET 2003 tools. | |
(If you have another version of Visual Studio or Visual C++ installed and wish | |
to use its tools from the command line, run vcvars32.bat for that version.) | |
Using Config::AutoConf | |
Writing version files | |
Building Marpa-R2 | |
Checking inline... no | |
Checking __inline__... no |
OlderNewer