Skip to content

About

Javascript version of elementary reaction expression parser

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

26 Commits

Folders and files

Repository files navigation

rxn-parser.js

Javascript version of elementary reaction expression parser

Build Status

Install

npm install rxn_parser

Test

npm test

Example

> var RxnEquation = require('./rxn_parser.js').RxnEquation;
> var ChemState = require('./rxn_parser.js').ChemState;
> var ChemFormula = require('./rxn_parser.js').ChemFormula;

// Operate chemial equation.
> var equation = new RxnEquation('CO_s + O_s <-> CO-O_s + 2*_s -> CO2_g + 2*_s');
> equation.checkConservation();
true
> var chemStates = equation.toList();
[ ChemState { chemState: 'CO_s + O_s' },
  ChemState { chemState: 'CO-O_s + *_s' },
  ChemState { chemState: 'CO2_g + 2*_s' } ]

// Operate chemical state...
// Operate chemical formual...

About

Javascript version of elementary reaction expression parser

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages