diff --git a/src/config.nim b/src/config.nim deleted file mode 100644 index 43bc82a..0000000 --- a/src/config.nim +++ /dev/null @@ -1,46 +0,0 @@ -# Copyright 2020 Mattia Giambirtone -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import strformat - - -const MAP_LOAD_FACTOR* = 0.75 # Load factor for builtin hashmaps (TODO) -const ARRAY_GROW_FACTOR* = 2 # How much extra memory to allocate for dynamic arrays (TODO) -const FRAMES_MAX* = 825 # TODO: Inspect why the VM crashes if this exceeds this value -const JAPL_VERSION* = "0.3.0" -const JAPL_RELEASE* = "alpha" -const DEBUG_TRACE_VM* = false # Traces VM execution -const DEBUG_TRACE_GC* = false # Traces the garbage collector (TODO) -const DEBUG_TRACE_ALLOCATION* = false # Traces memory allocation/deallocation (WIP) -const DEBUG_TRACE_COMPILER* = false # Traces the compiler -const JAPL_VERSION_STRING* = &"JAPL {JAPL_VERSION} ({JAPL_RELEASE}, {CompileDate} {CompileTime})" -const HELP_MESSAGE* = """The JAPL runtime interface, Copyright (C) 2020 Mattia Giambirtone - -This program is free software, see the license distributed with this program or check -http://www.apache.org/licenses/LICENSE-2.0 for more info. - -Basic usage ------------ - -$ jpl -> Start the REPL - -$ jpl filename.jpl -> Run filename.jpl - - -Command-line options --------------------- - --h, --help -> Show this help text and exit --v, --version -> Print the JAPL version number and exit -"""