Coder Social home page Coder Social logo

xtina-lt / cmsc330-compiling-shapes Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 593 KB

The first programming project involves extending the Java skeleton program that it is provided. That program reads in the scene definition file that defines the image objects in a scene and creates those objects, inserts them into the scene and displays that scene. This is done using character literals, tokens, and template literals.

Java 100.00%

cmsc330-compiling-shapes's Introduction

CMSC 330: Advanced Programming Languages | Project One

Updates By: Christina Torres

CMSC 330: Advanced Programming Languages

Professor Alin Suciu

Spring 2023

Skeleton Code By: UMGC 2021


UML Class Diagram (from assignment instructions)

UML Class Diagram


Developer’s Guide

  1. Use directory to navigate to the file location.

  2. Compile and run the main file.

    javac Main.java && java Main

  3. Select your file with the dimensions.

    JFile Chooser

  4. See results.

    Untitled

  5. Note awesomeness happening with the color scheme and icon💪.


What I Learned

I learned many invaluable lessons when creating this program. I am still getting use to a GUI, so this is interesting to me. I’m great with HTML and CSS, but not so much Java GUI things. I am growing to love it though. It is quite fun to see the different attributes and panels. I learned that the window is probably the frame and the sections of it are usually scenes. There is where the different objects live.

I learned quite a bit about how language translators and compilers work. Code starts as source code. It then goes to the Lexical Analyzer which can sometimes be called scanner. It results in a token stream. This token stream is then passed through a syntactic analyzer. A parse tree is created. In some languages there is an intermediate code generated which returns intermediate code. This then goes through a final code generator in some languages. Object code is the result.

Overall, I have a better appreciation of compilers.

cmsc330-compiling-shapes's People

Contributors

xtina-lt avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.