Skip to content
This repository was archived by the owner on Dec 31, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion bignum.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
#ifndef ETHSERP_BIGNUM
#define ETHSERP_BIGNUM

#include <string>

const std::string nums = "0123456789";

const std::string tt256 =
const std::string tt256 =
"115792089237316195423570985008687907853269984665640564039457584007913129639936"
;

Expand Down
2 changes: 0 additions & 2 deletions compiler.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#ifndef ETHSERP_COMPILER
#define ETHSERP_COMPILER

#include <stdio.h>
#include <iostream>
#include <vector>
#include <map>
#include "util.h"
Expand Down
2 changes: 0 additions & 2 deletions funcs.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#include <stdio.h>
#include <iostream>
#include <vector>
#include "funcs.h"
#include "bignum.h"
Expand Down
13 changes: 7 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
from setuptools import setup, Extension

import os
from distutils.sysconfig import get_config_vars
from distutils.sysconfig import get_config_var

(opt,) = get_config_vars('OPT')
os.environ['OPT'] = " ".join(
flag for flag in opt.split() if flag != '-Wstrict-prototypes'
)
opt = get_config_var('OPT')
if opt:
os.environ['OPT'] = " ".join(
flag for flag in opt.split() if flag != '-Wstrict-prototypes'
)

setup(
# Name of this package
Expand Down Expand Up @@ -44,4 +45,4 @@
'serpent = serpent:main',
],
}
),
)
5 changes: 1 addition & 4 deletions tokenize.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
#include <stdio.h>
#include <iostream>
#include <vector>
#include <map>
#include "util.h"
#include "tokenize.h"

// These appear as independent tokens even if inside a stream of symbols
const std::string atoms[] = { "#", "//", "(", ")", "[", "]", "{", "}" };
Expand Down Expand Up @@ -100,5 +99,3 @@ std::vector<Node> tokenize(std::string inp, Metadata metadata, bool lispMode) {
}
return out;
}


4 changes: 1 addition & 3 deletions tokenize.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
#ifndef ETHSERP_TOKENIZE
#define ETHSERP_TOKENIZE

#include <stdio.h>
#include <iostream>
#include <vector>
#include <map>
#include <string>
#include "util.h"

int chartype(char c);
Expand Down
2 changes: 0 additions & 2 deletions util.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#ifndef ETHSERP_UTIL
#define ETHSERP_UTIL

#include <stdio.h>
#include <iostream>
#include <vector>
#include <map>
#include <fstream>
Expand Down