pouring
is a high-level language to model and automate the manufacturing of compounds
pouring
is intended to be
- used by humans to experiment, test, play, design compounds;
- used by machines to manufacture compounds;
// the abstract `H_2O`
let waterCompound = react(
element('H'),
element('O', 2),
)
// instantiated 1 unit of substance
let waterInstance = pour(
waterCompound,
1,
)
react
, element
, pour
are primitives
// Glucose - https://en.wikipedia.org/wiki/Glucose#/media/File:D-glucose-chain-2D-Fischer.png
let glucoseComponent = react(
element('H'),
element('C'),
react(
element('O'),
element('H'),
),
)
let glucose = react(
react(
element('H'),
element('C'),
element('O'),
),
glucoseComponent,
react(
react(
element('H'),
element('O'),
),
element('C'),
element('H'),
),
glucoseComponent,
glucoseComponent,
react(
element('C'),
element('H', 2),
element('O'),
element('H'),
),
)