Commit 760d80fc authored by Chris Müller's avatar Chris Müller
Browse files

prepare cherry interpreter for iterative development

parent 72e4f4f7
......@@ -7,7 +7,6 @@ include(${PROJECT_SOURCE_DIR}/cmake/standard.cmake)
set(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR})
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR})
set(CHERRY_VERSION 0.1)
add_subdirectory(source)
......
add_subdirectory(language)
add_subdirectory(core)
add_subdirectory(cherry)
set(SOURCES
main.c)
add_executable(cherry ${SOURCES})
target_link_libraries(cherry readline)
#include <stdio.h>
#include <stdlib.h>
#include <readline/readline.h>
int main(int argc, char** argv)
{
printf("Cherry Interpreter 0.1\n\n");
char* line = readline("> ");
printf("written: %s\n", line);
return EXIT_SUCCESS;
}
/*
* Cherry programming language
* Copyright (C) 2013 Christoph Mueller
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once
#include <stdint.h>
typedef void* pointer;
typedef const void* const_pointer;
typedef uint8_t byte;
typedef uint16_t word;
Supports Markdown
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