Annotation of loncom/xml/algebra/algebra2tex.pl, revision 1.3
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) {
10: $ret = $parser -> parse($str);
1.1 albertel 11: if ( ref($ret) ) {
1.3 ! albertel 12: print $parser -> tostring().$/;
! 13: print $parser -> normalize().$/;
! 14: print $parser -> tolatex().$/;
1.1 albertel 15: } else {
16: print $parser->{htmlerror};
17: }
1.2 albertel 18: print "\n";
19: }
1.1 albertel 20:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>