/TruffleBF

BrainFuck AST Interpreter using Truffle

Primary LanguageJava

TruffleBF

A simple Brain Fuck AST Interpreter using the Truffle Framework.

To reach optimal performance I recommand to execute the interpreter on a graal vm but it should also work on any other JVM.

To get started take a look at the test folder, it includes a benchmark, hello world and many tests.

The language interop is not yet implemented neither is the debugger.

An idea would be to allow a language to switch the backed array (int array per default) per context so each language can manipulate its own primitive arrays via BrainFuck.

The used Truffle Version was build by me will asap change it using maven, when Truffle 0.9 is public available in maven repo.

Apache 2.0 License

Copyright [2016] [Moritz S.]

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.