Skip to content

Biochemical Scripting Language [Work in Thinking]

License

Unknown, Unknown licenses found

Licenses found

Unknown
LICENSE
Unknown
LICENSE.deon
Notifications You must be signed in to change notification settings

daysful/pouring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation



License: DEL

pouring

Bio-Chemical Scripting Language


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;

Syntax

// 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'),
    ),
)

About

Biochemical Scripting Language [Work in Thinking]

Resources

License

Unknown, Unknown licenses found

Licenses found

Unknown
LICENSE
Unknown
LICENSE.deon

Stars

Watchers

Forks