chemlambda4 welcome to the soup !             <-prev

   

      :: these simple molecules may form larger ones. The port nodes may form bonds, between a yellow and blue port node. We can get arbitrarily big molecules like this. The first thing is: how do we encode them? The answer is in the ".mol" files.

As an example, look at the following molecule which represents the B combinator, coupled to a FO node.

(click and drag the atoms)

(double click to release atom)

   

The names L, FO, A, etc. mark the main atom.

Each port atom has a label,

in this example the labels are numbers,

   

Small molecules bond into bigger ones,

Edges appear as bonds between yellow and blue ports.

Edge orientation is from yellow to blue ports.

   

The molecule is coded in a .mol file

as a list of nodes and labels of ports.

Bonded yellow-blue ports have the same label!