New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unix-related fixes and basic interactive interpreter #6

Merged
merged 4 commits into from Oct 1, 2012

Conversation

Projects
None yet
2 participants
@aperezdc

aperezdc commented Oct 1, 2012

This set of commits makes it possible to build ObjectScript for recent GNU/Linux and OpenBSD (both tested by me).

As a bonus, a simple interactive interpreter is added. It will only work under Unix as it uses the libedit library, which unfortunately is not available for Windows. A reasonable replacement for Windows could be MinGWEditLine, or just using the standard input functions (in that case there would be no support for line editing or history).

aperezdc added some commits Oct 1, 2012

Use intptr_t for casting pointers to integers
This is more correct and also fixes compilation errors with G++ 4.x
and Clang in Linux.
Simple interactive REPL using the libedit library
This implements a simple REPL (Read-Eval-Print Loop) interactive interpreter
using the BSD-licensed libedit library to read user input and provide input
history.
Update .gitignore with .o object files
Compiled object files with .o suffix are common in the Unix world.
Simple Makefile for Unix-like systems
Adds a simple Makefile which should work for most of the modern Unix
operating systems that ship GNU Make. Tested under GNU/Linux and
OpenBSD (using gmake port).

unitpoint added a commit that referenced this pull request Oct 1, 2012

Merge pull request #6 from aperezdc/misc-fixes
Unix-related fixes and basic interactive interpreter

@unitpoint unitpoint merged commit b0bb6c6 into unitpoint:master Oct 1, 2012

@unitpoint

This comment has been minimized.

Show comment
Hide comment
@unitpoint

unitpoint Oct 1, 2012

Owner

thanks aperezdc, perfect!

Owner

unitpoint commented Oct 1, 2012

thanks aperezdc, perfect!

unitpoint pushed a commit that referenced this pull request Feb 18, 2014

Merge pull request #6 from unitpoint/master
fix inc/dec operators empty result
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment