Commit 9fa56ee8 authored by Adam P. Goucher's avatar Adam P. Goucher

Everything is a Python package

parent 862ffa56
from ._version import __version__
#ifndef LIFELIB_VERSION /*
__version__=[x.replace('"', '') for x in '''
*/
#define LIFELIB_VERSION "ll1.4"
// '''.split() if ('ll' in x)][0]
#endif
#pragma once
#define LIFELIB_VERSION "ll1.31"
#include "_version.py"
#include "bitbounds.h"
#include <stdint.h>
......
......@@ -9,6 +9,7 @@ genus_list.append({'name': 'isotropic', 'regex': 'b[0-9ceaiknjqrytwz-]*s[0-9ceai
genus_list.append({'name': 'ltl', 'regex': 'r[234567]b[1-9][0-9]*t[1-9][0-9]*s[1-9][0-9]*t[1-9][0-9]*'})
import re
from importlib import import_module
def obtain_genus(rulestring):
......@@ -18,3 +19,8 @@ def obtain_genus(rulestring):
return g['name']
raise ValueError('Rule "%s" does not belong to any genus' % rulestring)
def genus_to_module(genus):
m = import_module('.' + genus, __name__)
return m
thing = 'test'
......@@ -4,6 +4,8 @@
int main() {
std::cerr << "Lifelib version: " << LIFELIB_VERSION << std::endl;
apg::lifetree<uint32_t, 4> lt(1500);
apg::streamtree<uint32_t, 1> st(500);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment