diff --git a/src/function/builtin/GENSYM.java b/src/function/builtin/GENSYM.java index 6bb7587..cf58c7a 100644 --- a/src/function/builtin/GENSYM.java +++ b/src/function/builtin/GENSYM.java @@ -9,10 +9,12 @@ import sexpression.*; public class GENSYM extends LispFunction { public static final String GENSYM_PREFIX = "#G"; + private static BigInteger counter = BigInteger.ZERO; private static Symbol generateSymbol() { incrementCounter(); + return new Symbol(GENSYM_PREFIX + counter); }