Annotation of loncom/xml/algebra/algebra2tex.pl, revision 1.4

1.1       albertel    1: #!/usr/bin/perl
                      2: 
                      3: use lib '.';
                      4: use AlgParser;
                      5: 
                      6: my $parser = new AlgParserWithImplicitExpand;
                      7: my $ret;
                      8: 
1.2       albertel    9: foreach $str (@ARGV) {
1.4     ! albertel   10:     print($str.$/);
        !            11:     $ret = $parser->parse($str);
        !            12:     if ( ref($ret) ) {
        !            13: 	print('1). '.$parser->tostring() .$/);
        !            14: 	print('2). '.$parser->tolatex()  .$/);
        !            15: 	print('3). '.$parser->normalize().$/);
        !            16: 	print('4). '.$parser->tostring() .$/);
        !            17: 	print('5). '.$parser->tolatex()  .$/);
        !            18:     } else {
        !            19: 	print($parser->{htmlerror}.$/);
        !            20:     }
        !            21:     print "\n";
1.2       albertel   22: }
1.1       albertel   23: 

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>