Jump to content




Bytecode Macro Compiler [Unstable]

lua utility computer

  • You cannot reply to this topic
No replies to this topic

#1 byPhins

  • Members
  • 12 posts
  • LocationGermany

Posted 02 January 2018 - 01:02 AM

Description:
A program that converts many files into one large bytecode file using macros. This program does extend your project with macros to load, change and manipulate files and the building process.
Included are some example libaries and an working example for turtles as an extra download at the bottom

Download:
The main file foud here is to build your Project.
In computercraft download via: 'pastebin get wLtuRVnw build'

Usage:
build <main filename> <out filename>
All source files, including the mainfile, have to be in the directory "src/".
The single output file will be in "out/".

Notes:
Before coming to the examples and other downloads here are some notes.
This project is created in a short amount of time and I hasnt enough time to completly test it, so it will may be unstable. Many new features will come soon and please report all bugs.

Tutorial and macro list:
List of all current avaible macros:
  • BEGINFUNCTION
  • ENDFUNCTION
  • FUNCTION
  • GLIBFUNC
  • IMPORT
  • IMPORTLIB
  • LIB
  • SOURCE
Explanations:
Spoiler

Here are three example libaries:
Turtle - Easy to use turtle functions
NetLib - Libary to work with wireless modems
Selfdestroy - Used to destroy your computer

Example:
The three libaries above are used in this example and are saveed at "src/module".
Example
Spoiler

As last here is the Compiled Example

Edited by byPhins, 02 January 2018 - 02:35 PM.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users