LaTeX like syntax to generate JSXGraph

I want to know if it is possible to generate a JSXGraph using LaTeX like syntax. For example I want to generate a graph from this function y=x^2+frac{1}{2}x+5, this is a very simple one and probably could be created with just replacing the frac part. But I am asking if there is an inbuilt parser that takes in the LaTeX and generates the appropriate graph for the mathematical function. And if it is not built in, are there any alternatives?