Fixing Parser for All Wiki and Chem Tests

This is required to run these tests.

Change-Id: I9e12b2f4cf6dc7d96cd51f408d8aa8d71b224ab3
This commit is contained in:
Stegmujo 2022-10-24 10:49:59 +00:00 committed by Physikerwelt
parent 551bc174c9
commit 2d56f19e3c
2 changed files with 2 additions and 2 deletions

View file

@ -422,7 +422,7 @@ class Parser {
private function peg_f4($h, $t) { return new TexArray($h, $t); }
private function peg_f5($d, $e) { return new TexArray(new Declh($d->getFname(), ParserUtil::lst2arr($e))); }
private function peg_f6($l1, $l2) {
return new FQ($l1->getBase(), $l1->getDown(), $l2); }
return new FQ($l1->getBase(), $l1->getUp(), $l2); }
private function peg_f7($l1, $l2) {
return new FQ($l1->getBase(), $l2, $l1->getUp()); }
private function peg_f8($base, $upi) { return new UQ($base, $upi); }

View file

@ -55,7 +55,7 @@ litsq_aq
litsq_fq
= l1:litsq_dq SUP l2:lit
{
return new FQ($l1->getBase(), $l1->getDown(), $l2); }
return new FQ($l1->getBase(), $l1->getUp(), $l2); }
/ l1:litsq_uq SUB l2:lit
{
return new FQ($l1->getBase(), $l2, $l1->getUp()); }