Kerl13 / AsciiMath

Compiler from asciimath to LaTeX
MIT License
8 stars 2 forks source link

Ambiguous grammar #7

Open Kerl13 opened 8 years ago

Kerl13 commented 8 years ago

In the current grammar, "cos(x)/2" can be reduced the following two ways

  1. Frac (cos ( x )) (2)
  2. cos, Frac (( x )) (2) The official asciimath parser seems to chose the first option whereas this one chose the second…