Design, evaluation and implementation of a new small DSL for creating animation intros for Youtube videos.
Built as a group project for UBC CPSC 410 (Advanced Software Engineering).
You should have Git, Java JDK, and IntelliJ installed on your PC.
You can find the documentation for our DSL here.
-
Clone the repo using:
git clone https://github.com/sassansh/YouAnimate
-
To install the SDK:
- Download the Java JDK (this project has been tested with SDK 16.0.2 - not sure about other versions).
- If you download the installer for your specific machine and run it, the Java version should be set up for you.
- Select File > Project Structure.
- Under 'Project Settings', choose 'Project' and for 'Project SDK' select '16' (it should automatically be detected and selectable).
-
To install ANTLR:
- Select File > Project Structure.
- Under 'Project Settings', choose 'Libraries' and select the '+' icon to add a new project library.
- Choose 'JAVA' and select YouAnimate/lib/antlr-4.9.2-complete.jar.
-
To generate (or update) the lexer files:
- Right-click on YouAnimate/src/parser/YouAnimateLexer.g4.
- Select 'Generate ANTLR Recognizer.'
- The files will show up under gen/parser.
-
To generate (or update) the parser files:
- Right-click on YouAnimate/src/parser/YouAnimateParser.g4.
- Select 'Generate ANTLR Recognizer.'
- The files will show up under gen/parser.
-
To set the project's source folders:
- Select File > Project Structure.
- Under 'Project Settings', choose 'Modules.' Right-click the gen folder, and select 'Sources.'
- Make sure both the 'src' and 'gen' folders are blue and listed underneath the 'Source Folders' header on the right.
-
To build the project:
- Select Build > Build Project.
-
To generate your animation
- Write your input inside of YouAnimate/input.ttxt
- Then run the Main class.
- In the console log, a list of the tokens detected will be displayed, along with any errors for the lexer / parser / evaluator.
- You will now have a generated HTML file at YouAnimate/index.html
- Open YouAnimate/index.html in a browser to view your animation
NOTE: If you encounter any errors (ex. with the ANTLR files, class imports, project builds, etc.), try selecting File > Invalidate Caches. Then select 'Invalidate & Restart.'
Sassan Shokoohi - GitHub - LinkedIn - Personal Website
Amir Jafarvand - GitHub - LinkedIn - Personal Website
Angela Tian - GitHub - LinkedIn - Personal Website