Skip to content

Instantly share code, notes, and snippets.

@AlexanderSavochkin
Created November 19, 2015 06:28
Show Gist options
  • Save AlexanderSavochkin/073620b5bd6358e770fc to your computer and use it in GitHub Desktop.
Save AlexanderSavochkin/073620b5bd6358e770fc to your computer and use it in GitHub Desktop.
TOKEN: { "(" | ")" |
<NUM: (["0"-"9"])+> |
<ELEMENT: ( "H" | "He" | "Li" | "Be" | "B" | "C" | "N" | "O" | "F" | "Ne" |
"Na" | "Mg" | "Al" | "Si" | "P" | "S" | "Cl" | "Ar" |
"K" | "Ca" | "Sc" | "Ti" | "V" | "Cr" | "Mn" | "Fe" | "Co" | "Ni" | "Cu" | "Zn" | "Ga" | "Ge" | "As" | "Se" | "Br" | "Kr" |
"Rb" | "Sr" | "Y" | "Zr" | "Nb" | "Mo" | "Tc" | "Ru" | "Rh" | "Pd" | "Ag" | "Cd" | "In" | "Sn" | "Sb" | "Te" | "I" | "Xe" |
"Cs" | "Ba" | "Hf" | "Ta" | "W" | "Re" | "Os" | "Ir" | "Pt" | "Au" | "Hg" | "Tl" | "Pb" | "Bi" | "Po" | "At" | "Rn"
"La" | "Ce" | "Pr" | "Nd" | "Pm" | "Sm" | "Eu" | "Gd" | "Tb" | "Dy" | "Ho" | "Er" | "Tm" | "Yb" | "Lu" |
"Ac" | "Th" | "Pa" | "U" | "Np" | "Pu" | "Am" | "Cm" | "Bk" | "Cf" | "Es" | "Fm" | "Md" | "No" | "Lr")> |
<ELEMENTARYGROUP: ("OH" |
"CO3" | "NO2" | "NO3" |
"SiO3" | "PO3" | "PO4" | "SO3" | "SO4" | "SeO3" | "SeO4" | "ClO" | "ClO2" | "ClO3" | "ClO4" |
"BrO" | "BrO2" | "BrO3" | "BrO4" |
"IO" | "IO2" | "IO3" | "IO4" | "MnO4" |
"CH3" | "CH2" | "C2H5" | "C6H5" |
"COOH" | "NH2" | "NH4" )>
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment