mylisp's Introduction
CSE 6341 Project 4 1. Name: Fang Zhou 2. Build Information: A. Run 'make' in the project's directory. B. Run my project in this way 'java Project < $testfile > $testresult' where testfile means the name of test file and testresult means the name of test result. 3. Design Information: A. Node.java: This file is used to create a binary tree. We can use setLeft() and setRight() functions to set the children. Each node has an attribute to point out the type of node, just as '(', ')'. B. MyScanner.java: The code in this file is used to accept the input from the users. In this part, this class checks the legality of each element in the input. The code also provides an important function 'getNextToken', which is called by MyParser class. For Proj4, I add a function called typeChecker() function and in the main function, I make the evaluate() function become comments. So for Proj4, the program just to test the inference in the code and show the code in the Proj1's way. C. MyParser.java: MyParser is responsible for building the binary tree, evaulating if the node is a list, and printing the results to the standard output. It also includes some bugs detection code. D. Project.java: Project class contains the main function of the project. It also creates some instances of MyParser and MyScanner classes. E. MyEvaluate.java: This is the Evaluate function in Project 3. This is a class that can be revoked to evalute semantics starting from a Node class. There is a function 'eval' that returns the result in a format of Node class. In this project, I add some code for DEFUN and a lot of checks for completeness.
mylisp's People
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.