Found 9 repositories(showing 9)
davidly
CP/M 2.2 compilers, assemblers, and interpreters
astrophysik
Custom simple compiler
Tsygankov-Slava
No description available
IVladimirA
C+- toy language parser and compiler written in C++. This project was created for a task from first stage of VK summer 2022 internship selection.
AmrAhmed412
No description available
Lambda-tron
This project implements a compiler for the C+- programming language, developed as part of a university course on compiler construction. The project explores the core stages of compilation including tokenization, syntax analysis, semantic checking, and code generation.
Altair 8k Basic along with Altair CPM with mbasic, assembler and C compiler
nbreeden2
Contains the DAZZLER BLOX6C demo program, other DAZZLER demo programs, DAZZLER 64x64 16 color driver, source code and BDS C compiler for CPM 2.2; works with both physical hardware and the High Nibble IMSAI 8080 Emulator.
Morgan-Mischo
Loops Your job is to create a class called Loops in package loops. That class should contain implementations of the following five public, static methods. The class and each method must have a Javadoc comment that explains what they do. Your comments should describe behavior from the point of view of an external observer. The best way to do this is to write the comments before you write the code. containsToken takes a String s and a String t as parameters, and returns a boolean. It returns true if t occurs as a token within s, and returns false otherwise. (Implementation note: Use a Scanner to break s into tokens, and use a searching loop to look for t.) findLineWithToken takes a Scanner scn and a String t as parameters, and returns a String. It returns a line from scn that contains t as a token (if such a line exists) and returns the empty string (otherwise). (Implementation note: You'll find the containsToken method specified above helpful. This method calls for a searching loop.) isPalindrome takes a String s as a parameter and returns a boolean. It returns true if s reads the same forwards and backwards, and returns false otherwise. You are not allowed to use any method that reverses s. (Implementation note: Use a loop that searches for a character in s that doesn't "match up" with an identical character elsewhere in the string. You'll need to determine the appropriate definition of "match up".) findLongestPalindrome takes a Scanner scn as its parameter and returns a String. It returns the longest token from scn that is a palindrome (if one exists) or the empty string (otherwise). (Implementation note: You'll find the isPalindrome method helpful here. This method calls for an optimization loop.) findMostWhitespace takes a Scanner scn as its parameter and returns an int. It finds the line in scn with the most whitespace characters and returns the number of whitespace characters it contains (if scn contains at least one line) or -1 (otherwise). (Implementation note: This method calls for an optimization loop, and will be be easy if you first implement a method that counts the amount of whitespace in a string. There is a method Character.isWhitespace() that you'll find useful.) Fall 2018 Home Syllabus Modules Assignments Grades Files Gradescope My Media Office 365 PS4 Due Sep 23, 2018 by 11:59pm Points 100 Submitting a file upload File Types zip Use the CPM to create a new project for PS4. You should end up with a Java project with a name of the form PS4_LASTNAME_FIRSTNAME. Alternatively, you can download PS4_Starting_Point.zip, import it into Eclipse, and rename the imported project. This assignment has two parts, Loops and Animation. Be sure to complete both of them! Loops Your job is to create a class called Loops in package loops. That class should contain implementations of the following five public, static methods. The class and each method must have a Javadoc comment that explains what they do. Your comments should describe behavior from the point of view of an external observer. The best way to do this is to write the comments before you write the code. containsToken takes a String s and a String t as parameters, and returns a boolean. It returns true if t occurs as a token within s, and returns false otherwise. (Implementation note: Use a Scanner to break s into tokens, and use a searching loop to look for t.) findLineWithToken takes a Scanner scn and a String t as parameters, and returns a String. It returns a line from scn that contains t as a token (if such a line exists) and returns the empty string (otherwise). (Implementation note: You'll find the containsToken method specified above helpful. This method calls for a searching loop.) isPalindrome takes a String s as a parameter and returns a boolean. It returns true if s reads the same forwards and backwards, and returns false otherwise. You are not allowed to use any method that reverses s. (Implementation note: Use a loop that searches for a character in s that doesn't "match up" with an identical character elsewhere in the string. You'll need to determine the appropriate definition of "match up".) findLongestPalindrome takes a Scanner scn as its parameter and returns a String. It returns the longest token from scn that is a palindrome (if one exists) or the empty string (otherwise). (Implementation note: You'll find the isPalindrome method helpful here. This method calls for an optimization loop.) findMostWhitespace takes a Scanner scn as its parameter and returns an int. It finds the line in scn with the most whitespace characters and returns the number of whitespace characters it contains (if scn contains at least one line) or -1 (otherwise). (Implementation note: This method calls for an optimization loop, and will be be easy if you first implement a method that counts the amount of whitespace in a string. There is a method Character.isWhitespace() that you'll find useful.) As a starting point, I have provided you with a unit test class called LoopTests. Until you create your Loops class it will, of course, contain lots of compiler errors. I strongly suggest that you following these steps when you implement Loops. Start early First, create stubs for each of the methods. Each method is public and static. I have told you what to call each method, what parameters each method takes, and what type of value each method returns. Each stub should have a Javadoc comment, a method header, and a body consisting of a single return statement. The idea is to get enough information into the class so that neither Loops nor LoopTests has any compiler errors. Now implement the methods, one after the other. Pay attention to the implementation notes I've given above. As you work on each implementation, use the test cases frequently to gauge your progress. Start early Animation In your PS4 project, run the AnimationWindow class, which you find inside of the animation package. Click the Play button and you will see a barrage of cannon balls. Your job is to create an animation that is as interesting as mine (which isn't saying much). At a minimum, I want an animation that: Is different from mine. (Don't simply take my code and make minor changes. Create something different.) Tells a story to us, amuses us, or impresses us. (Mine is mildly amusing.) Uses at least two different shapes that move. (I only have one such shape.) Lasts at least ten seconds. Interesting things should happen throughout the animation. (Mine does pretty well here.) Has multiple independent objects moving in different directions simultaneously. (Mine does this briefly.) Has multiple independent objects that change direction without first jumping. (Mine do this continuously.) Has multiple independent objects that change color. (Mine doesn't do this.) Has an object that smoothly expands or shrinks. (Mine doesn't do this.) The best animations will be featured in the CS 1410 Animation Festival, coming later this semester. We will only look at the first fifteen seconds when grading. You can make the animation longer if you like, but be sure that all of the required elements appear in the first fifteen seconds.
All 9 repositories loaded