1Pegex::Grammar::Atoms(3U)ser Contributed Perl DocumentatiPoengex::Grammar::Atoms(3)
2
3
4

NAME

6       Pegex::Grammar::Atoms - Pegex Regex Atoms
7

SYNOPSIS

9           use Pegex::Grammar::Atoms;
10

DESCRIPTION

12       Atoms are special Pegex rules that represent the small pieces of text
13       that you can use to build up regular expressions. Usually they are one
14       or two characters.
15
16       It may seem like a waste of time to specify "COLON" in a regex, instead
17       of a simple ":". There are three reasons this is encouraged. First is
18       that you are defining a grammar for a new language, and it is worth the
19       time to be clear and verbose. Second, using an abstraction like this
20       can help with portability to languages with different regex engines.
21       Finally, it makes the grammar for Pegex so much simpler, because a "/"
22       is always a part of the Pegex syntax, and a "SLASH" is part of your
23       grammar.
24

AUTHOR

26       Ingy döt Net <ingy@cpan.org>
27
29       Copyright 2010-2018. Ingy döt Net.
30
31       This program is free software; you can redistribute it and/or modify it
32       under the same terms as Perl itself.
33
34       See <http://www.perl.com/perl/misc/Artistic.html>
35
36
37
38perl v5.28.0                      2018-11-12          Pegex::Grammar::Atoms(3)
Impressum