Download as a PDF

Transcript
Abstract
Our MQP focused on building a domain specific language (DSL) to be used with Neuron
Robotics‟ flagship product, the DyIO (Dynamic Input/Ouput). Devices, such as sensors
and servos, connected to the DyIO can be manipulated through Java, but there is a steep
learning curve for those with no prior programming experience which we sought to
eliminate.
Our DSL, Fez, is developed in Ruby and ANTLR and interacts with Neuron Robotics
Java libraries as a façade. We define a class hierarchy of the DyIO, abstractions for
common devices that can be connected, and functionality for such devices. We develop a
grammar and parser for our DSL which translates Fez to Ruby and execute the resulting
code interactively.
Fez is a fully functional language that properly translates all supported statements into
Ruby. It was designed to somewhat mirror writing English as opposed to writing in a
programming language. The main interface to Fez is a Read-Eval-Print-Loop (REPL) and
it is run in a terminal window.