Prueba de concepto para el trabajo práctico de dibujador. La intención es definir un lenguaje que permita describir imágenes compuestas por formas geométricas, que los alumnos implementen el parseo de ese lenguaje y las abstracciones detrás con Parser Combinators, y que después puedan feedear eso a un dibujador que proveerá la cátedra.
Esta prueba de concepto está basada en JavaFX, con ScalaFX encima. Está basada en ScalaFX Hello World
Simple example of a ScalaFX application using Simple-Build-Tool (SBT).
src/main/scala/hello/ScalaFXHelloWorld.scala
- sample ScalaFX application.build.sbt
- the main SBT configuration file.project/build.properties
- version of SBT to use.project/plugins.sbt
- plugins used for creation of IDEA and Eclipse projects.
-
Install Java 11 JDK or newer. This project should also work with Java 10. If you are want to use Java 8 look at the SFX-8 branch of this project.
-
Install SBT
-
Run the example: change to directory containing this example and use SBT to build and run the example:
%> sbt run
It will download needed dependencies, including Scala and ScalaFX, and run the example code.
IntelliJ IDEA and NetBeans with Scala plugins can directly import SBT projects.
If you want to create project that can be used with Eclipse, inside this project directory, at command prompt type:
%> sbt eclipse
Detailed description of similar example can be found in the blog post "Getting Started with ScalaFX: Compile and Run".