Skip to content

ICSS Compiler assignment voor ASD APP Course Feb 2020

Notifications You must be signed in to change notification settings

stefthijssen/icss2020

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ICSSTool

This file contains notes and issues for the ICSSTool. For assignment instructions, see ASSIGNMENT.md This tutorial has been tested with Java version 13 (OpenJDK), IntelliJ IDEA and Maven. To enable instructors to assess your work you will need to keep the Maven POM the same.

Running

ICSSTool is a Maven-runnable application. You can compile the application with the following command:

mvn compile

then run it with either

mvn exec:java

or

mvn javfx:run

Maven will automatically generate/update the parser from the supplied ANTLRv4 grammar file (.g4-file).

You can also run the application from an IDE, e.g. IntellIJ. To do so, import startcode as Maven project. Whenever you make changes to grammar, make sure you run mvn generate-sources prior to compiling. Most IDEs do not update the ANLTR parser automatically.

Since Java is modular, JavaFX is not bundled by default. Depending on your IDE you may need to install OpenJFX and add it to your module path.

Known issues

  • Packaging works, but running the JAR standalone can be troublesome because of the JavaFX and ANLTR-runtime dependencies. You can uncomment the maven-shade-plugin in the POM to create a (huge) fat JAR. It removes module encapsulation which will trigger a warning.

About

ICSS Compiler assignment voor ASD APP Course Feb 2020

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Java 97.7%
  • ANTLR 2.2%
  • CSS 0.1%