File: algebra2tex.pl

package info (click to toggle)
moodle 1.4.4.dfsg.1-3sarge1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 57,876 kB
  • ctags: 29,496
  • sloc: php: 271,617; sql: 5,084; xml: 702; perl: 638; sh: 403; java: 283; makefile: 42; pascal: 21
file content (17 lines) | stat: -rwxr-xr-x 287 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/perl

use lib '.';
use AlgParser;

my $parser = new AlgParserWithImplicitExpand;
my $ret;

$ret = $parser -> parse($ARGV[0]);
if ( ref($ret) ) {
    $parser -> tostring();
    $parser -> normalize();
    print $parser -> tolatex();
} else {
    print $parser->{htmlerror};
}