Dr. Philip Cannata 1 Programming Languages. Dr. Philip Cannata 2 Class Website

Slides:



Advertisements
Similar presentations
Dr. Philip Cannata 1 Computer Networking. Dr. Philip Cannata 2.
Advertisements

CSc 2310 Principles of Programming (Java)
Today’s Agenda  Syllabus CS2336: Computer Science II.
COMP 110 Introduction to Programming Tabitha Peck M.S. January 9, 2008 MWF 3-3:50 pm Philips 367.
Math 115b Section 1 (Summer 07)  Instructor: Kerima Ratnayaka   Phone :  Office.
Installing JDK Vijayan Sugumaran Department of DIS Oakland University.
Math 115b Section 5(Spring 06)  Instructor: Kerima Ratnayaka   Phone :  Office.
My Policies and Some Advice for Doing Well in this Course.
OBJECT ORIENTED PROGRAMMING I LECTURE 1 GEORGE KOUTSOGIANNAKIS
CS 166 DATABASE MANAGEMENT SYSTEMS Dr Eamonn Keogh uci
Csc111 :Programming with Java First semester H.
Math 115a– Section 4  Instructor: Kerima Ratnayaka   Phone :  Office : MTL 124B.
COMP 110 Introduction to Programming Mr. Joshua Stough August 22, 2007 Monday/Wednesday/Friday 3:00-4:15 Gardner Hall 307.
Dr. Philip Cannata 1 Data Management. Dr. Philip Cannata 2 Syllabus.
Presented by Janine Termine Welcome 090 PreAlgebra.
Dr. Philip Cannata 1 Programming Languages. Dr. Philip Cannata 2 10 Java (Object Oriented) ACL2 (Propositional Induction) Algorithmic Information Theory.
1 Are you ready?. 2 Professor: Vladimir Misic Office : Phone: Office Hours : Mon, Tue; 2:00pm – 4:00pm Website :
Dr. Philip Cannata 1 with ReL. Dr. Philip Cannata 2 10 Java (Object Oriented) ASP RDF (Horn Clause Deduction, Semantic Web) Relation Jython in Java This.
Welcome to CS 115! Introduction to Programming. Class URL Please write this down!
CS110/CS119 Introduction to Computing (Java)
CSCI 1301 Principles of Computer Science I
CIS150AB: Object-Oriented Programming Fundamentals Instructor: Gary R. Smith, MS.
Presented by Janine Termine Welcome to E-Learning.
Welcome to CS 3260 Dennis A. Fairclough. Overview Course Canvas Web Site Course Materials Lab Assignments Homework Grading Exams Withdrawing from Class.
COMP Introduction to Programming Yi Hong May 13, 2015.
Dr. Philip Cannata 1 Programming Languages. Dr. Philip Cannata 2 Class Website
CSc 2310 Principles of Programming (Java) Dr. Xiaolin Hu.
CPS120: Introduction to Computer Science Fall: 2002 Instructor: Paul J. Millis.
Math 115a ILC Room 125. Math 115a Stephen Reyes  Office: MTL 124E  Phone:   Office Hours: Tues & Thurs: 9:00am.
Presented by Janine Termine Welcome 095 Basic Algebra.
CST 229 Introduction to Grammars Dr. Sherry Yang Room 213 (503)
Orientation for Accounting 107 with QuickBooks Pro Paul R. St.John, CPA’s Online Class at Fullerton College.
Catie Welsh January 10, 2011 MWF 1-1:50 pm Sitterson 014.
CSCI 51 Introduction to Computer Science Dr. Joshua Stough January 20, 2009.
Welcome to CS 115! Introduction to Programming. Class URL Write this down!
COP3502: Introduction to Computer Science Yashas Shankar.
Econ 3320 Managerial Economics (Fall 2015)
Math 115b Section 3 (Spring 09)  Instructor: Kerima Ratnayaka   Phone :  Office.
CPS120: Introduction to Computer Science Winter 2002 Instructor: Paul J. Millis.
Ant & Jar Ant – Java-based build tool Jar – pkzip archive, that contains metadata (a manifest file) that the JRE understands.
Welcome to the MTLC MATH 115 Spring MTLC Information  Hours of Operation  Sunday:4:00pm – 10:00pm  Monday – Thursday: 8:00am – 10:00pm  Friday:8:00am.
Computer Science 101 Spring 2000 Section E8TBA Registration Code 1693 Dr. Christopher Vickery.
Installing JDK Vijayan Sugumaran Department of DIS Oakland University.
Welcome to Web Design 2 with Mrs. Tarr. Course Overview This course will provide you with a more in- depth look at web design including This course will.
Required Tools Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written permission.
James Tam Introduction To CPSC 233 James Tam Java Object-Orientation Event driven software.
James Tam Introduction To CPSC 233 James Tam Java Object-Orientation Graphical-user interfaces.
Course Information CSE 2031 Fall Instructor U. T. Nguyen /new-yen/ Office: CSEB Office hours:  Tuesday,
Math 115b Section 18 & 20 (Fall 2010)  Instructor: Kerima Ratnayaka   Phone : 
Math 115a Section 2(Summer 05)  Instructor: Kerima Ratnayaka   Phone :  Office.
Administrative Preliminaries Computer Architecture.
Dr. Philip Cannata 1 Functions and Recursion Programming Languages.
Presented by Janine Termine Welcome 095 Basic Algebra.
CS 201 Lecture 1 (b) Using an IDE Tarik Booker CS 201: Introduction to Programming California State University, Los Angeles.
CS 201 Accelerated Introduction to Computer Science LECTURE 1 GEORGE KOUTSOGIANNAKIS 1 Copyright: FALL 2016 Illinois Institute of Technology/ George Koutsogiannakis.
CS140 – Computer Programming 1 Course Overview First Semester – Fall /1438 – 2016/2017 CS140 - Computer Programming 11.
Database Management Systems
Installing Cygwin from
Welcome to CS 4390/CS5381: Introduction to Formal Methods
CSc 1302 Principles of Computer Science II
Introduction to Programming
CSC215 Lecture Orientation.
CMPE 152: Compiler Design January 25 Class Meeting
Welcome to CS 1010! Algorithmic Problem Solving.
Welcome to CS 1010! Algorithmic Problem Solving.
CMPE 152: Compiler Design August 21 Class Meeting
Welcome to CS 1301! Principles of Programming I.
Introduction to Programming Using C++
Accelerated Introduction to Computer Science
CMPE 152: Compiler Design January 24 Class Meeting
Presentation transcript:

Dr. Philip Cannata 1 Programming Languages

Dr. Philip Cannata 2 Class Website

Dr. Philip Cannata 3 Textbooks (Required): Programming Languages: Application and Interpretation by Shriram Krishnamurthi - Free online book Textbooks (Recommended): "Generating Parsers with JavaCC, Second Edition" by Tom Copeland, Published by Centennial Books, Alexandria, VA. ISBN Tom Copeland "The Definitive Antlr Reference: Building Domain-Specific Languages" Terence Parr (Author) (Pragmatic Programmers) (Paperback) Grading Grades will be calculated on the following scale: A: ; B: 80-89; C: ; D: 60-69; F: Your final grade will be calculated by averaging your performance on Homework, Project(s), Quizzes and Exams with the following weighting: Homework 20%, Quizzes 15%, Project 15%, Exams 25% each. The lowest Quiz and Homework grades will be dropped before calculating a final grade. Quizzes There will be in class quizzes on a very regular basis. These quizzes will be based on day's course lecture material, readings from the course texts, and/or homework. Missed quizzes will be given a grade of zero unless there are extenuating circumstances (see below). Homework Homework exercises will be assigned with an explicit due date. Homework is to be done individually. Late homework will be given a grade of zero unless there are extenuating circumstances (see below). Examinations There will be two closed book exams, a Mid-Term and a Final. These exams must be taken on the specified date and at the specified time. If you miss an exam due to extenuating circumstances (see below), a grade will be negotiated for the exam based on a percentage of your homework, quizzes and other exam scores. Missed exams will be given a grade of zero. Extenuating Circumstances If you have difficulty meeting the requirements of this course, fail to hand in an assignment, or miss an exam because of extenuating circumstances, please advise your instructor in writing (not ) at the earliest possible date so that your situation can be discussed. If you encounter an unexpected medical or family emergency or a random act of Nature that causes you to miss the due date for homework or miss a quiz or exam, you must present suitable documentation in writing (not ) to the instructor before special consideration will be given. A file of all written correspondence will be kept by the instructor and decisions regarding them will be made at the end of the semester. Administration and Policies

Dr. Philip Cannata 4

Dr. Philip Cannata 5 10 Java (Object Oriented) ACL2 (Propositional Induction) Algorithmic Information Theory (Information Compression and Randomness) - Kolmogorov Complexity Orc (Parallel Computing) GpH (Parallel Computing) ASP RDF (Horn Clause Deduction, Semantic Web) Relation Jython in Java This Course High Level Languages

Dr. Philip Cannata 6 You may need two brains

Dr. Philip Cannata 7 Build this using javacc High Level Languages

Dr. Philip Cannata 8 Relation-based (Functional) Languages

Dr. Philip Cannata 9 The tools you will need to get started javac javacc cygwin (if you’re going to be using Windows) ant jython See next pages for downloading and installation

Dr. Philip Cannata 10 Download JDK 6 from Change your path environment variable to include the path to javac Installing javac on Windows This one

Dr. Philip Cannata 11 Installing javacc on Windows

Dr. Philip Cannata 12 Installing javacc on Windows

Dr. Philip Cannata 13 Installing javacc on Windows Download javacc from I put the zip file in C:\Program Files\Java and extracted it to there. So, javacc is in C:\Program Files\Java\javacc-5.0\javacc-5.0\bin Change your path environment variable to include C:\Program Files\Java\javacc-5.0\javacc-5.0\bin or whatever your path is. Do the following to do this: path environment variables are in the System Properties -> Advanced Tab -> Environment Variables? Add the javacc path to the front of the existing “path” environment variable followed by a semi- colon? Edit the javacc program as follows: #!/bin/sh JAR="`dirname "$0"`/lib/javacc.jar" case "`uname`" in CYGWIN*) JAR="`cygpath --windows -- "$JAR"`" ;; esac java -classpath "$JAR" javacc Put double quotes around $0

Dr. Philip Cannata 14 javacc on the CS machines Greetings, We've installed javacc, the java compiler compiler. This is a parser generator for java. See for details. This will be made available on all departmental machines after our nightly cron job runs this evening. Javacc will be in the default $PATH, so you can access it simply by running 'javacc' from a terminal. However, if you need to use the javacc.jar file, you will need to add its location to your $CLASSPATH environmental variable. I have created a set of shell scripts to ease this process. If you use bash, run the following: source /lusr/share/lib/java/javacc/env.d/append.sh If you run csh or tcsh, run this instead: source /lusr/share/lib/java/javacc/env.d/append.csh Please send mail to gripe if you have any questions. -jason

Dr. Philip Cannata 15 Installing Cygwin from

Dr. Philip Cannata 16 Download Cygwin Install File (Optional)

Dr. Philip Cannata 17 Download Cygwin Install File (Optional) 12 34

Dr. Philip Cannata 18 Download Cygwin Install File (Optional) 12 34

Dr. Philip Cannata 19 Don’t take the Default. See next page. Download Cygwin Install File (Optional)

Dr. Philip Cannata 20 Click here until you have All Install Download Cygwin Install File (Optional)

Dr. Philip Cannata 21 Download Cygwin Install File (Optional)

Dr. Philip Cannata 22 Installing Cygwin

Dr. Philip Cannata 23 Installing Cygwin 12 34

Dr. Philip Cannata 24 Installing Cygwin 12 3

Dr. Philip Cannata 25 Don’t take the Default. See next page. Installing Cygwin

Dr. Philip Cannata 26 Click here until you have All Install Installing Cygwin

Dr. Philip Cannata 27 Installing Cygwin

Dr. Philip Cannata 28 Installing Cygwin Many hours later

Dr. Philip Cannata 29 Installing Cygwin See next page

Dr. Philip Cannata 30 *** Important Cygwin Setup *** Change.bash_profile to have something similar to these 2 lines depending on where your javac and javacc are located. I’m using vi here to change the file.

Dr. Philip Cannata 31 *** Important Cygwin Setup ***

Dr. Philip Cannata 32 URL of repository: Download SVN Client (tortoisesv): Download jython source Create some folder to hold the jython code.

Dr. Philip Cannata 33 Download ant: Build jython $ cd C: $ cd Myjython/jython/ $ vi setEnv.sh $ cat setEnv.sh export PATH="/cygdrive/c/ant-1.8.2/bin:$PATH" export JAVA_HOME="/cygdrive/c/java/jdk1.6.0_23" $../setEnv.sh $ ant Buildfile: C:\Myjython\jython\build.xml init: needed-check: clean-if-antlr-needed: init: clean-checkout-dir: clean: prepare-output: [mkdir] Created dir: C:\Myjython\jython\build\classes [mkdir] Created dir: C:\Myjython\jython\build\gensrc\org\python\antlr [mkdir] Created dir: C:\Myjython\jython\build\exposed antlr_gen:... You need to create this file using something like wordpad. These need to be the correct paths for your system.

Dr. Philip Cannata 34 Try jython 3. $ Try it out $ dist/bin/jython Jython 2.6a0+ (trunk, Aug , 19:41:57) [Java HotSpot(TM) Client VM (Sun Microsystems Inc.)] on java1.6.0_23 Type "help", "copyright", "credits" or "license" for more information. >>> >>> (lambda x: x)(4) 4 >>> (lambda x: x+10)(4) 14 >>>