NAME
Math::Symbolic::Parser - Parse strings into Math::Symbolic trees
SYNOPSIS
use Math::Symbolic::Parser;
my $parser = Math::Symbolic::Parser->new();
my $tree = $parser->parse($string);
# or:
use Math::Symbolic;
my $tree = Math::Symbolic->parse_from_string();
DESCRIPTION
This module contains the parsing routines used by Math::Symbolic to parse strings into Math::Symbolic trees. Usually, you will want to simply use the Math::Symbolic::parse_from_string subroutine instead of this module directly. If you do, however, make sure to remove any whitespace from your input string.
EXPORT
None by default.
CLASS DATA
While working with this module, you might get into the not-so-convient position of having to debug the parser and/or its grammar. In order to make this possible, there's the $DEBUG package variable which, when set to 1, makes the parser warn which grammar elements are being processed. Note, however, that their order is bottom-up, not top-down.