A simple way to balance chemical equations using antlr4.
This project is maintained by MichaelSnowden
Chem Balancer is just a simple way to balance chemical equations online. There's an online front-end, downloadable source code, as well as a public API.
Just go to this website.
Check out the source code of this example client.
Send a GET
request to https://chem-balancer.herokuapp.com/solve
with the parameter equation
set to a string containing a valid equation that follows this grammar.
$.get("https://chem-balancer.herokuapp.com/solve", {"equation": $("#equation").val()}, function (data) {
$("#answer").text(data);
});
Michael Snowden (@MichaelSnowden)