Computing Unit 3: Data Types
|
|
- Harry Stephens
- 5 years ago
- Views:
Transcription
1 Computing Unit 3: Data Types Kurt Hornik September 26, 2018
2 Character vectors String constants: enclosed in "... " (double quotes), alternatively single quotes. Slide 2
3 Character vectors String constants: enclosed in "... " (double quotes), alternatively single quotes. C-style special characters in double-quoted string constants: \a \n \t \\ \" etc. Slide 2
4 Character vectors String constants: enclosed in "... " (double quotes), alternatively single quotes. C-style special characters in double-quoted string constants: \a \n \t \\ \" etc. Combination using c(). Slide 2
5 Character vectors String constants: enclosed in "... " (double quotes), alternatively single quotes. C-style special characters in double-quoted string constants: \a \n \t \\ \" etc. Combination using c(). Elementwise equality using == Slide 2
6 Character vectors String constants: enclosed in "... " (double quotes), alternatively single quotes. C-style special characters in double-quoted string constants: \a \n \t \\ \" etc. Combination using c(). Elementwise equality using == Creation and testing of character vectors using character et al. Slide 2
7 Character vectors nchar count the number of characters Slide 3
8 Character vectors nchar count the number of characters substr, substring extract or replace substrings Slide 3
9 Character vectors nchar count the number of characters substr, substring extract or replace substrings paste concatenate vectors after converting to character Slide 3
10 Character vectors nchar count the number of characters substr, substring extract or replace substrings paste concatenate vectors after converting to character sprintf C-style string formatting Slide 3
11 Character vectors nchar count the number of characters substr, substring extract or replace substrings paste concatenate vectors after converting to character sprintf C-style string formatting iconv convert between encodings Slide 3
12 Character vectors nchar count the number of characters substr, substring extract or replace substrings paste concatenate vectors after converting to character sprintf C-style string formatting iconv convert between encodings chartr, toupper, tolower character translation and case folding Slide 3
13 Character vectors match, pmatch (simple) complete and partial matching of character strings Slide 4
14 Character vectors match, pmatch (simple) complete and partial matching of character strings grep, grepl, sub, gsub, regexpr, gregexpr pattern matching and replacement using regular expressions Slide 4
15 Character vectors match, pmatch (simple) complete and partial matching of character strings grep, grepl, sub, gsub, regexpr, gregexpr pattern matching and replacement using regular expressions strsplit split strings into substrings Slide 4
16 Regular Expressions A regular expression ( regexp, RE ) is a pattern that denotes a (possibly infinite) set of strings. Slide 5
17 Regular Expressions A regular expression ( regexp, RE ) is a pattern that denotes a (possibly infinite) set of strings. Portable Operating System Interface (POSIX) defines modern extended regexps, and obsolete basic regexps. Slide 5
18 Regular Expressions A regular expression ( regexp, RE ) is a pattern that denotes a (possibly infinite) set of strings. Portable Operating System Interface (POSIX) defines modern extended regexps, and obsolete basic regexps. REs have a syntax in which a few characters are special constructs and the rest are ordinary. Slide 5
19 Regular Expressions A regular expression ( regexp, RE ) is a pattern that denotes a (possibly infinite) set of strings. Portable Operating System Interface (POSIX) defines modern extended regexps, and obsolete basic regexps. REs have a syntax in which a few characters are special constructs and the rest are ordinary. An ordinary character is a simple regexp matching just itself. Slide 5
20 Regular Expressions A regular expression ( regexp, RE ) is a pattern that denotes a (possibly infinite) set of strings. Portable Operating System Interface (POSIX) defines modern extended regexps, and obsolete basic regexps. REs have a syntax in which a few characters are special constructs and the rest are ordinary. An ordinary character is a simple regexp matching just itself. ERE special characters:. * +? ^ $ \ [ ] ( ) { }. Slide 5
21 Regular Expressions A regular expression ( regexp, RE ) is a pattern that denotes a (possibly infinite) set of strings. Portable Operating System Interface (POSIX) defines modern extended regexps, and obsolete basic regexps. REs have a syntax in which a few characters are special constructs and the rest are ordinary. An ordinary character is a simple regexp matching just itself. ERE special characters:. * +? ^ $ \ [ ] ( ) { }. Any non-special character is ordinary unless preceded by a \. Slide 5
22 Regexp Special Characters. Matches any single character. Slide 6
23 Regexp Special Characters. Matches any single character. * Postfix operator: matches the preceding regexp as many times as possible (zero or more). Slide 6
24 Regexp Special Characters. Matches any single character. * Postfix operator: matches the preceding regexp as many times as possible (zero or more). + Postfix operator: matches the preceding regexp as many times as possible, but at least once. Slide 6
25 Regexp Special Characters. Matches any single character. * Postfix operator: matches the preceding regexp as many times as possible (zero or more). + Postfix operator: matches the preceding regexp as many times as possible, but at least once.? Postfix operator: matches the preceding regexp once or not at all. Slide 6
26 Regexp Special Characters. Matches any single character. * Postfix operator: matches the preceding regexp as many times as possible (zero or more). + Postfix operator: matches the preceding regexp as many times as possible, but at least once.? Postfix operator: matches the preceding regexp once or not at all. ˆ Matches the null string at the beginning of a line Slide 6
27 Regexp Special Characters. Matches any single character. * Postfix operator: matches the preceding regexp as many times as possible (zero or more). + Postfix operator: matches the preceding regexp as many times as possible, but at least once.? Postfix operator: matches the preceding regexp once or not at all. ˆ Matches the null string at the beginning of a line $ Matches the null string at the end of a line Slide 6
28 Regexp Special Characters. Matches any single character. * Postfix operator: matches the preceding regexp as many times as possible (zero or more). + Postfix operator: matches the preceding regexp as many times as possible, but at least once.? Postfix operator: matches the preceding regexp once or not at all. ˆ Matches the null string at the beginning of a line $ Matches the null string at the end of a line specifies an alternative (applies to the largest possible surrounding). Slide 6
29 Regexp Special Characters. Matches any single character. * Postfix operator: matches the preceding regexp as many times as possible (zero or more). + Postfix operator: matches the preceding regexp as many times as possible, but at least once.? Postfix operator: matches the preceding regexp once or not at all. ˆ Matches the null string at the beginning of a line $ Matches the null string at the end of a line specifies an alternative (applies to the largest possible surrounding). \ Quotes special characters, and introduces additional special constructs. Slide 6
30 Regexp Character Alternatives [... ] is a character alternative (bracket expression) matching one of the specified characters. Slide 7
31 Regexp Character Alternatives [... ] is a character alternative (bracket expression) matching one of the specified characters. Character ranges can be included by writing the starting and ending characters with a - between them. Slide 7
32 Regexp Character Alternatives [... ] is a character alternative (bracket expression) matching one of the specified characters. Character ranges can be included by writing the starting and ending characters with a - between them. Inside character alternatives, the following are special: ] - ^. Slide 7
33 Regexp Character Alternatives [... ] is a character alternative (bracket expression) matching one of the specified characters. Character ranges can be included by writing the starting and ending characters with a - between them. Inside character alternatives, the following are special: ] - ^. [ˆ... ] is a complementary character alternative matching any character except the ones specified. Slide 7
34 Regexp Character Alternatives [... ] is a character alternative (bracket expression) matching one of the specified characters. Character ranges can be included by writing the starting and ending characters with a - between them. Inside character alternatives, the following are special: ] - ^. [ˆ... ] is a complementary character alternative matching any character except the ones specified. Inside a character alternative, one can also use character classes by enclosing their names in [:... :] (character classes are alnum, alpha, blank, cntrl, digit, graph, lower, print, punct, space, upper, xdigit). Slide 7
35 Regexp Grouping (... ) specifies a grouping. Used 1. to enclose a set of alternatives; Slide 8
36 Regexp Grouping (... ) specifies a grouping. Used 1. to enclose a set of alternatives; 2. to enclose a complicated expression for the postfix operators; Slide 8
37 Regexp Grouping (... ) specifies a grouping. Used 1. to enclose a set of alternatives; 2. to enclose a complicated expression for the postfix operators; 3. record a matched substring for future reference with \DIGIT Slide 8
38 Regexp Bounds {... } specifies a bound on the preceding regexp (atom). Slide 9
39 Regexp Bounds {... } specifies a bound on the preceding regexp (atom). 1. {m}, 0 m 255, matches a sequence of exactly m repetitions of the preceding regexp. Slide 9
40 Regexp Bounds {... } specifies a bound on the preceding regexp (atom). 1. {m}, 0 m 255, matches a sequence of exactly m repetitions of the preceding regexp. 2. {m,}, 0 m 255, matches a sequence of at least m repetitions of the preceding regexp. Slide 9
41 Regexp Bounds {... } specifies a bound on the preceding regexp (atom). 1. {m}, 0 m 255, matches a sequence of exactly m repetitions of the preceding regexp. 2. {m,}, 0 m 255, matches a sequence of at least m repetitions of the preceding regexp. 3. {m,n}, 0 m n 255, matches a sequence of m through n (inclusive) repetitions of the preceding regexp. Slide 9
Text & Patterns. stat 579 Heike Hofmann
Text & Patterns stat 579 Heike Hofmann Outline Character Variables Control Codes Patterns & Matching Baby Names Data The social security agency keeps track of all baby names used in applications for social
More informationRegex, Sed, Awk. Arindam Fadikar. December 12, 2017
Regex, Sed, Awk Arindam Fadikar December 12, 2017 Why Regex Lots of text data. twitter data (social network data) government records web scrapping many more... Regex Regular Expressions or regex or regexp
More informationLecture 5, Regular Expressions September 2014
Lecture 5, Regular Expressions 36-350 10 September 2014 In Our Last Thrilling Episode Characters and strings Matching strings, splitting on strings, counting strings We need a ways to compute with patterns
More informationpsed [-an] script [file...] psed [-an] [-e script] [-f script-file] [file...]
NAME SYNOPSIS DESCRIPTION OPTIONS psed - a stream editor psed [-an] script [file...] psed [-an] [-e script] [-f script-file] [file...] s2p [-an] [-e script] [-f script-file] A stream editor reads the input
More informationConfiguring the RADIUS Listener LEG
CHAPTER 16 Revised: July 28, 2009, Introduction This module describes the configuration procedure for the RADIUS Listener LEG. The RADIUS Listener LEG is configured using the SM configuration file p3sm.cfg,
More informationMore Scripting and Regular Expressions. Todd Kelley CST8207 Todd Kelley 1
More Scripting and Regular Expressions Todd Kelley kelleyt@algonquincollege.com CST8207 Todd Kelley 1 Regular Expression Summary Regular Expression Examples Shell Scripting 2 Do not confuse filename globbing
More informationRegular Expressions Overview Suppose you needed to find a specific IPv4 address in a bunch of files? This is easy to do; you just specify the IP
Regular Expressions Overview Suppose you needed to find a specific IPv4 address in a bunch of files? This is easy to do; you just specify the IP address as a string and do a search. But, what if you didn
More informationRegular Expressions. Todd Kelley CST8207 Todd Kelley 1
Regular Expressions Todd Kelley kelleyt@algonquincollege.com CST8207 Todd Kelley 1 POSIX character classes Some Regular Expression gotchas Regular Expression Resources Assignment 3 on Regular Expressions
More informationConfiguring the RADIUS Listener Login Event Generator
CHAPTER 19 Configuring the RADIUS Listener Login Event Generator Published: December 21, 2012 Introduction This chapter describes the configuration procedure for the RADIUS listener Login Event Generator
More informationCS Unix Tools & Scripting
Cornell University, Spring 2014 1 February 7, 2014 1 Slides evolved from previous versions by Hussam Abu-Libdeh and David Slater Regular Expression A new level of mastery over your data. Pattern matching
More informationPaolo Santinelli Sistemi e Reti. Regular expressions. Regular expressions aim to facilitate the solution of text manipulation problems
aim to facilitate the solution of text manipulation problems are symbolic notations used to identify patterns in text; are supported by many command line tools; are supported by most programming languages;
More information- c list The list specifies character positions.
CUT(1) BSD General Commands Manual CUT(1)... 1 PASTE(1) BSD General Commands Manual PASTE(1)... 3 UNIQ(1) BSD General Commands Manual UNIQ(1)... 5 HEAD(1) BSD General Commands Manual HEAD(1)... 7 TAIL(1)
More informationCS 301. Lecture 05 Applications of Regular Languages. Stephen Checkoway. January 31, 2018
CS 301 Lecture 05 Applications of Regular Languages Stephen Checkoway January 31, 2018 1 / 17 Characterizing regular languages The following four statements about the language A are equivalent The language
More informationData Cleaning. Andrew Jaffe. January 6, 2016
Data Cleaning Andrew Jaffe January 6, 2016 Data We will be using multiple data sets in this lecture: Salary, Monument, Circulator, and Restaurant from OpenBaltimore: https: //data.baltimorecity.gov/browse?limitto=datasets
More informationBashed One Too Many Times. Features of the Bash Shell St. Louis Unix Users Group Jeff Muse, Jan 14, 2009
Bashed One Too Many Times Features of the Bash Shell St. Louis Unix Users Group Jeff Muse, Jan 14, 2009 What is a Shell? The shell interprets commands and executes them It provides you with an environment
More informationCS Advanced Unix Tools & Scripting
& Scripting Spring 2011 Hussam Abu-Libdeh Today s slides are from David Slater February 25, 2011 Hussam Abu-Libdeh Today s slides are from David Slater & Scripting Random Bash Tip of the Day The more you
More informationISO/IEC JTC1/SC22/WG20 N
Reference number of working document: ISO/IEC JTC1/SC22/WG20 N Date: 2001-12-25 Reference number of document: ISO/IEC DTR2 14652 Committee identification: ISO/IEC JTC1/SC22 Secretariat: ANSI Information
More informationRegular Expressions 1
Regular Expressions 1 Basic Regular Expression Examples Extended Regular Expressions Extended Regular Expression Examples 2 phone number 3 digits, dash, 4 digits [[:digit:]][[:digit:]][[:digit:]]-[[:digit:]][[:digit:]][[:digit:]][[:digit:]]
More informationReference number of working document: Reference number of document: ISO/IEC FCD
Reference number of working document: ISO/IEC JTC1/SC22/WG20 N634 Date: 1998-12-21 Reference number of document: ISO/IEC FCD2 14652 Committee identification: ISO/IEC JTC1/SC22 Secretariat: ANSI Information
More informationInformation technology. Specification method for cultural conventions ISO/IEC JTC1/SC22/WG20 N690. Reference number of working document:
Reference number of working document: ISO/IEC JTC1/SC22/WG20 N690 Date: 1999-06-28 Reference number of document: ISO/IEC PDTR 14652 Committee identification: ISO/IEC JTC1/SC22 Secretariat: ANSI Information
More informationDescribing Languages with Regular Expressions
University of Oslo : Department of Informatics Describing Languages with Regular Expressions Jonathon Read 25 September 2012 INF4820: Algorithms for AI and NLP Outlook How can we write programs that handle
More informationLecture 15: Regular expressions in R
Lecture 15: Regular expressions in R STAT598z: Intro. to computing for statistics Vinayak Rao Department of Statistics, Purdue University options(repr.plot.width=5, repr.plot.height=3) We have seen the
More informationRegular Expressions. Regular Expression Syntax in Python. Achtung!
1 Regular Expressions Lab Objective: Cleaning and formatting data are fundamental problems in data science. Regular expressions are an important tool for working with text carefully and eciently, and are
More informationUNIX / LINUX - REGULAR EXPRESSIONS WITH SED
UNIX / LINUX - REGULAR EXPRESSIONS WITH SED http://www.tutorialspoint.com/unix/unix-regular-expressions.htm Copyright tutorialspoint.com Advertisements In this chapter, we will discuss in detail about
More informationBoredGames Language Reference Manual A Language for Board Games. Brandon Kessler (bpk2107) and Kristen Wise (kew2132)
BoredGames Language Reference Manual A Language for Board Games Brandon Kessler (bpk2107) and Kristen Wise (kew2132) 1 Table of Contents 1. Introduction... 4 2. Lexical Conventions... 4 2.A Comments...
More informationBNF, EBNF Regular Expressions. Programming Languages,
BNF, EBNF Regular Expressions Programming Languages, 234319 1 Reminder - (E)BNF A notation for describing the grammar of a language The notation consists of: Terminals: the actual legal strings, written
More informationGNU Bash. an introduction to advanced usage. James Pannacciulli Systems Engineer.
Concise! GNU Bash http://talk.jpnc.info/bash_lfnw_2017.pdf an introduction to advanced usage James Pannacciulli Systems Engineer Notes about the presentation: This talk assumes you are familiar with basic
More informationTECHNICAL ISO/IEC REPORT TR 14652
TECHNICAL ISO/IEC REPORT TR 14652 Final text 2002-08-12 Information technology Specification method for cultural conventions Technologies de l information Méthode de modélisation des conventions culturelles
More informationPackage stringb. November 1, 2016
Title Convenient Base R String Handling Date 2016-11-01 Version 0.1.13 Package b November 1, 2016 Base R already ships with handling capabilities 'outof-the-box' but lacks streamlined function names and
More informationPattern Matching. An Introduction to File Globs and Regular Expressions
Pattern Matching An Introduction to File Globs and Regular Expressions Copyright 2006 2009 Stewart Weiss The danger that lies ahead Much to your disadvantage, there are two different forms of patterns
More informationRecitation 2: Strings and RegExp Statistical Computing, Monday September 28, 2015
Recitation 2: Strings and RegExp Statistical Computing, 36-350 Monday September 28, 2015 Strings: A Brief Review Intituively, a string is a seris of letters, numbers, and other symbols. R stores these
More informationPattern Matching. An Introduction to File Globs and Regular Expressions. Adapted from Practical Unix and Programming Hunter College
Pattern Matching An Introduction to File Globs and Regular Expressions Adapted from Practical Unix and Programming Hunter College Copyright 2006 2009 Stewart Weiss The danger that lies ahead Much to your
More informationlooks at class of input and calls appropriate function
Lecture 18: Regular expressions in R STAT598z: Intro. to computing for statistics Vinayak Rao Department of Statistics, Purdue University We have seen the print function: In [48]: x
More informationMTAT Agile Software Development in the Cloud Lecture 4: More on Ruby
MTAT.03.295 Agile Software Development in the Cloud Lecture 4: More on Ruby Luciano García-Bañuelos University of Tartu Regular Expressions Widely use tool for specifying (and implemen5ng) pa7ern matching
More informationCSE 311 Lecture 21: Context-Free Grammars. Emina Torlak and Kevin Zatloukal
CSE 311 Lecture 21: Context-Free Grammars Emina Torlak and Kevin Zatloukal 1 Topics Regular expressions A brief review of Lecture 20. Context-free grammars Syntax, semantics, and examples. 2 Regular expressions
More informationKurt Schmidt. October 19, 2017
duction duction Dept. of Computer Science, Drexel University October 19, 2017 duction duction Works well with record-type data Reads input file(s) a line (record) at a time Parses each record into fields
More informationPackage stringr. February 15, 2013
Package r February 15, 2013 Maintainer Hadley Wickham License GPL-2 Title Make it easier to work with s. Type Package Author Hadley Wickham r is a set of simple
More informationRegular Expressions. Regular expressions match input within a line Regular expressions are very different than shell meta-characters.
ULI101 Week 09 Week Overview Regular expressions basics Literal matching.wildcard Delimiters Character classes * repetition symbol Grouping Anchoring Search Search and replace in vi Regular Expressions
More informationLinux Text Utilities 101 for S/390 Wizards SHARE Session 9220/5522
Linux Text Utilities 101 for S/390 Wizards SHARE Session 9220/5522 Scott D. Courtney Senior Engineer, Sine Nomine Associates March 7, 2002 http://www.sinenomine.net/ Table of Contents Concepts of the Linux
More informationMTAT Agile Software Development in the Cloud. Lecture 3: Ruby (cont.)
MTAT.03.295 Agile Software Development in the Cloud Lecture 3: Ruby (cont.) Luciano García-Bañuelos University of Tartu Let s play with our example tree1 = BinaryTree.new(10) tree1.insert(5) tree1.insert(15)
More informationFIPA ACL Message Representation in String Specification
1 2 3 4 5 6 FOUNDATION FOR INTELLIGENT PHYSICAL AGENTS FIPA ACL Message Representation in String Specification 7 8 Document title FIPA ACL Message Representation in String Specification Document number
More informationFeatures of C. Portable Procedural / Modular Structured Language Statically typed Middle level language
1 History C is a general-purpose, high-level language that was originally developed by Dennis M. Ritchie to develop the UNIX operating system at Bell Labs. C was originally first implemented on the DEC
More informationPart III. Shell Config. Tobias Neckel: Scripting with Bash and Python Compact Max-Planck, February 16-26,
Part III Shell Config Compact Course @ Max-Planck, February 16-26, 2015 33 Special Directories. current directory.. parent directory ~ own home directory ~user home directory of user ~- previous directory
More informationINTERNATIONAL ISO/IEC WD10 STANDARD. Information technology Specification methods for cultural conventions
INTERNATIONAL ISO/IEC 30112 WD10 STANDARD ISO/IEC 30112 WD10 2014-04-04 Information technology Specification methods for cultural conventions Technologies de l'information Méthodes de modélisation des
More informationFIPA ACL Message Representation in String Specification
1 2 3 4 5 6 FOUNDATION FOR INTELLIGENT PHYSICAL AGENTS FIPA ACL Message Representation in String Specification 7 8 Document title FIPA ACL Message Representation in String Specification Document number
More informationConfiguring the RADIUS Listener Login Event Generator
CHAPTER 19 Configuring the RADIUS Listener Login Event Generator Published: May 27, 2013 Introduction This chapter describes the configuration procedure for the RADIUS listener Login Event Generator (LEG).
More informationNAME nawk pattern-directed scanning and processing language. SYNOPSIS nawk [ F fs ][ v var=value ][ prog f progfile ][file... ]
nawk NAWK NAME nawk pattern-directed scanning and processing language SYNOPSIS nawk [ F fs ][ v var=value ][ prog f progfile ][file... ] DESCRIPTION Nawk scans each input file for lines that match any
More informationISO/IEC INTERNATIONAL STANDARD. Information technology - Syntactic metalanguage - Extended BNF
INTERNATIONAL STANDARD ISO/IEC First edition 1996-l -l 5 Information technology - Syntactic metalanguage - Extended BNF Technologies de / information - Mbtalangage syntaxique - BNF &endu Reference number
More informationTypescript on LLVM Language Reference Manual
Typescript on LLVM Language Reference Manual Ratheet Pandya UNI: rp2707 COMS 4115 H01 (CVN) 1. Introduction 2. Lexical Conventions 2.1 Tokens 2.2 Comments 2.3 Identifiers 2.4 Reserved Keywords 2.5 String
More informationObject-Oriented Software Engineering CS288
Object-Oriented Software Engineering CS288 1 Regular Expressions Contents Material for this lecture is based on the Java tutorial from Sun Microsystems: http://java.sun.com/docs/books/tutorial/essential/regex/index.html
More informationNumber System. Introduction. Natural Numbers (N) Whole Numbers (W) Integers (Z) Prime Numbers (P) Face Value. Place Value
1 Number System Introduction In this chapter, we will study about the number system and number line. We will also learn about the four fundamental operations on whole numbers and their properties. Natural
More informationDINO. Language Reference Manual. Author: Manu Jain
DINO Language Reference Manual Author: Manu Jain Table of Contents TABLE OF CONTENTS...2 1. INTRODUCTION...3 2. LEXICAL CONVENTIONS...3 2.1. TOKENS...3 2.2. COMMENTS...3 2.3. IDENTIFIERS...3 2.4. KEYWORDS...3
More informationObject oriented programming. Instructor: Masoud Asghari Web page: Ch: 3
Object oriented programming Instructor: Masoud Asghari Web page: http://www.masses.ir/lectures/oops2017sut Ch: 3 1 In this slide We follow: https://docs.oracle.com/javase/tutorial/index.html Trail: Learning
More informationTom Lord except the chapter "Posix Entry Points" from The GNU C Library reference manual by Sandra Loosemore with Richard M.
Rx Tom Lord except the chapter "Posix Entry Points" from The GNU C Library reference manual by Sandra Loosemore with Richard M. Stallman, Roland McGrath, and Andrew Oram Copyright c 1995 Cygnus Support
More informationRegular Expressions. Computer Science and Engineering College of Engineering The Ohio State University. Lecture 9
Regular Expressions Computer Science and Engineering College of Engineering The Ohio State University Lecture 9 Language Definition: a set of strings Examples Activity: For each above, find (the cardinality
More informationDigital Data Collection - getting started
Digital Data Collection - getting started Rolf Fredheim 17/02/2015 Rolf Fredheim Digital Data Collection - getting started 17/02/2015 1 / 72 Digital Data Collection - getting started Rolf Fredheim Digital
More informationLesson 06 Arrays. MIT 11053, Fundamentals of Programming By: S. Sabraz Nawaz Senior Lecturer in MIT Department of MIT FMC, SEUSL
Lesson 06 Arrays MIT 11053, Fundamentals of Programming By: S. Sabraz Nawaz Senior Lecturer in MIT Department of MIT FMC, SEUSL Array An array is a group of variables (called elements or components) containing
More informationThe SPL Programming Language Reference Manual
The SPL Programming Language Reference Manual Leonidas Fegaras University of Texas at Arlington Arlington, TX 76019 fegaras@cse.uta.edu February 27, 2018 1 Introduction The SPL language is a Small Programming
More informationCS160A EXERCISES-FILTERS2 Boyd
Exercises-Filters2 In this exercise we will practice with the Unix filters cut, and tr. We will also practice using paste, even though, strictly speaking, it is not a filter. In addition, we will expand
More informationInput File Syntax The parser expects the input file to be divided into objects. Each object must start with the declaration:
TCC Low Level Parser Purpose The TCC low level parser is designed to convert the low level ASCII based configuration files into a binary format which can then be downloaded to the Alpha processor boards.
More informationIntroduction to Regular Expressions Version 1.3. Tom Sgouros
Introduction to Regular Expressions Version 1.3 Tom Sgouros June 29, 2001 2 Contents 1 Beginning Regular Expresions 5 1.1 The Simple Version........................ 6 1.2 Difficult Characters........................
More informationTopic 4: Grep, Find & Sed
Topic 4: Grep, Find & Sed grep: a tool for searching for strings within files find: a tool for examining a directory tree sed: a tool for "batch editing" Associated topic: regular expressions 1 Motivation
More informationServer-side Web Development (I3302) Semester: 1 Academic Year: 2017/2018 Credits: 4 (50 hours) Dr Antoun Yaacoub
Lebanese University Faculty of Science Computer Science BS Degree Server-side Web Development (I3302) Semester: 1 Academic Year: 2017/2018 Credits: 4 (50 hours) Dr Antoun Yaacoub 2 Regular expressions
More informationCSE 374 Programming Concepts & Tools. Laura Campbell (thanks to Hal Perkins) Winter 2014 Lecture 6 sed, command-line tools wrapup
CSE 374 Programming Concepts & Tools Laura Campbell (thanks to Hal Perkins) Winter 2014 Lecture 6 sed, command-line tools wrapup Where we are Learned how to use the shell to run, combine, and write programs
More informationMicrosoft Visual Basic 2005: Reloaded
Microsoft Visual Basic 2005: Reloaded Second Edition Chapter 4 Making Decisions in a Program Objectives After studying this chapter, you should be able to: Include the selection structure in pseudocode
More informationRetrieving Data Using the SQL SELECT Statement. Copyright 2004, Oracle. All rights reserved.
Retrieving Data Using the SQL SELECT Statement Copyright 2004, Oracle. All rights reserved. Objectives After completing this lesson, you should be able to do the following: List the capabilities of SQL
More informationSystems Programming/ C and UNIX
Systems Programming/ C and UNIX December 7-10, 2017 1/17 December 7-10, 2017 1 / 17 Outline 1 2 Using find 2/17 December 7-10, 2017 2 / 17 String Pattern Matching Tools Regular Expressions Simple Examples
More informationThe PCAT Programming Language Reference Manual
The PCAT Programming Language Reference Manual Andrew Tolmach and Jingke Li Dept. of Computer Science Portland State University September 27, 1995 (revised October 15, 2002) 1 Introduction The PCAT language
More informationDeveloping a Basic Web Page
Developing a Basic Web Page Creating a Web Page for Stephen Dubé s Chemistry Classes 1 Objectives Review the history of the Web, the Internet, and HTML Describe different HTML standards and specifications
More informationCS214-AdvancedUNIX. Lecture 2 Basic commands and regular expressions. Ymir Vigfusson. CS214 p.1
CS214-AdvancedUNIX Lecture 2 Basic commands and regular expressions Ymir Vigfusson CS214 p.1 Shellexpansions Let us first consider regular expressions that arise when using the shell (shell expansions).
More informationHonu. Version November 6, 2010
Honu Version 5.0.2 November 6, 2010 Honu is a family of languages built on top of Racket. Honu syntax resembles Java. Like Racket, however, Honu has no fixed syntax, because Honu supports extensibility
More informationCOMP1730/COMP6730 Programming for Scientists. Strings
COMP1730/COMP6730 Programming for Scientists Strings Lecture outline * Sequence Data Types * Character encoding & strings * Indexing & slicing * Iteration over sequences Sequences * A sequence contains
More informationThis book is licensed under a Creative Commons Attribution 3.0 License
6. Syntax Learning objectives: syntax and semantics syntax diagrams and EBNF describe context-free grammars terminal and nonterminal symbols productions definition of EBNF by itself parse tree grammars
More informationLec-5-HW-1, TM basics
Lec-5-HW-1, TM basics (Problem 0)-------------------- Design a Turing Machine (TM), T_sub, that does unary decrement by one. Assume a legal, initial tape consists of a contiguous set of cells, each containing
More informationMELODY. Language Reference Manual. Music Programming Language
MELODY Language Reference Manual Music Programming Language Tong GE Jingsi LI Shuo YANG tg2473 jl4165 sy2515 1. Introduction 2. Lexical Conventions 2.1 Comments 2.2 Identifiers 2.3 Keywords 2.4 Constants
More informationIntroduction to modeling
Introduction to modeling Relational modelling Slides for this part are based on Chapters 11 from Halpin, T. & Morgan, T. 2008, Information Modeling and Relational Databases, Second Edition (ISBN: 978-0-12-373568-3),
More informationJME Language Reference Manual
JME Language Reference Manual 1 Introduction JME (pronounced jay+me) is a lightweight language that allows programmers to easily perform statistic computations on tabular data as part of data analysis.
More informationPackage tau. R topics documented: September 27, 2017
Package tau September 27, 2017 Version 0.0-20 Encoding UTF-8 Title Text Analysis Utilities Description Utilities for text analysis. Suggests tm License GPL-2 NeedsCompilation yes Author Christian Buchta
More informationProgramming Languages & Compilers. Programming Languages and Compilers (CS 421) Programming Languages & Compilers. Major Phases of a Compiler
Programming Languages & Compilers Programming Languages and Compilers (CS 421) Three Main Topics of the Course I II III Sasa Misailovic 4110 SC, UIUC https://courses.engr.illinois.edu/cs421/fa2017/cs421a
More informationProgramming Languages and Compilers (CS 421)
Programming Languages and Compilers (CS 421) Elsa L Gunter 2112 SC, UIUC http://courses.engr.illinois.edu/cs421 Based in part on slides by Mattox Beckman, as updated by Vikram Adve and Gul Agha 10/30/17
More informationProgramming Languages & Compilers. Programming Languages and Compilers (CS 421) I. Major Phases of a Compiler. Programming Languages & Compilers
Programming Languages & Compilers Programming Languages and Compilers (CS 421) I Three Main Topics of the Course II III Elsa L Gunter 2112 SC, UIUC http://courses.engr.illinois.edu/cs421 New Programming
More informationRegular Expressions. Regular expressions are a powerful search-and-replace technique that is widely used in other environments (such as Unix and Perl)
Regular Expressions Regular expressions are a powerful search-and-replace technique that is widely used in other environments (such as Unix and Perl) JavaScript started supporting regular expressions in
More informationMore text file manipulation: sorting, cutting, pasting, joining, subsetting,
More text file manipulation: sorting, cutting, pasting, joining, subsetting, Laboratory of Genomics & Bioinformatics in Parasitology Department of Parasitology, ICB, USP Inverse cat Last week we learned
More informationIPCoreL. Phillip Duane Douglas, Jr. 11/3/2010
IPCoreL Programming Language Reference Manual Phillip Duane Douglas, Jr. 11/3/2010 The IPCoreL Programming Language Reference Manual provides concise information about the grammar, syntax, semantics, and
More informationGNU Grep: Print lines matching a pattern
GNU Grep: Print lines matching a pattern version 2.14, 15 May 2012 Alain Magloire et al. This manual is for grep, a pattern matching engine. Copyright c 1999-2002, 2005, 2008-2012 Free Software Foundation,
More informationRegular Expressions. Michael Wrzaczek Dept of Biosciences, Plant Biology Viikki Plant Science Centre (ViPS) University of Helsinki, Finland
Regular Expressions Michael Wrzaczek Dept of Biosciences, Plant Biology Viikki Plant Science Centre (ViPS) University of Helsinki, Finland November 11 th, 2015 Regular expressions provide a flexible way
More informationPerl Regular Expressions Perl is renowned for its excellence in text processing. Regular expressions area big factor behind this fame.
Perl Regular Expressions Perl Regular Expressions Perl is renowned for its excellence in text processing. Regular expressions area big factor behind this fame. UVic SEng 265 Daniel M. German Department
More information正则表达式 Frank from https://regex101.com/
符号 英文说明 中文说明 \n Matches a newline character 新行 \r Matches a carriage return character 回车 \t Matches a tab character Tab 键 \0 Matches a null character Matches either an a, b or c character [abc] [^abc]
More informationOrdinary Differential Equation Solver Language (ODESL) Reference Manual
Ordinary Differential Equation Solver Language (ODESL) Reference Manual Rui Chen 11/03/2010 1. Introduction ODESL is a computer language specifically designed to solve ordinary differential equations (ODE
More informationWeiss Chapter 1 terminology (parenthesized numbers are page numbers)
Weiss Chapter 1 terminology (parenthesized numbers are page numbers) assignment operators In Java, used to alter the value of a variable. These operators include =, +=, -=, *=, and /=. (9) autoincrement
More informationGNU Grep: Print lines matching a pattern
GNU Grep: Print lines matching a pattern version 2.9, 25 June 2011 Alain Magloire et al. This manual is for grep, a pattern matching engine. Copyright c 1999-2002, 2005, 2008-2011 Free Software Foundation,
More informationTechnical Questions. Q 1) What are the key features in C programming language?
Technical Questions Q 1) What are the key features in C programming language? Portability Platform independent language. Modularity Possibility to break down large programs into small modules. Flexibility
More informationSTREAM EDITOR - REGULAR EXPRESSIONS
STREAM EDITOR - REGULAR EXPRESSIONS http://www.tutorialspoint.com/sed/sed_regular_expressions.htm Copyright tutorialspoint.com It is the regular expressions that make SED powerful and efficient. A number
More informationPublished by O Reilly Media, Inc., 1005 Gravenstein Highway North, Sebastopol, CA 95472
MySQL Cookbook, Second Edition by Paul DuBois Copyright 2007, 2002 O Reilly Media, Inc. All rights reserved. Printed in the United States of America. Published by O Reilly Media, Inc., 1005 Gravenstein
More informationLearning Language. Reference Manual. George Liao (gkl2104) Joseanibal Colon Ramos (jc2373) Stephen Robinson (sar2120) Huabiao Xu(hx2104)
Learning Language Reference Manual 1 George Liao (gkl2104) Joseanibal Colon Ramos (jc2373) Stephen Robinson (sar2120) Huabiao Xu(hx2104) A. Introduction Learning Language is a programming language designed
More informationLDAP Filters and Searching LDAP Directories Solutions
Solutions 1 Background: A grammar is a notation that defines the syntax of a computer language. You have already seen an example of a grammar on slides 22 and 23 of Lecture8 (about Interaction Diagrams)
More informationShells & Shell Programming (Part B)
Shells & Shell Programming (Part B) Software Tools EECS2031 Winter 2018 Manos Papagelis Thanks to Karen Reid and Alan J Rosenthal for material in these slides CONTROL STATEMENTS 2 Control Statements Conditional
More informationGNU Bash. An Introduction to Advanced Usage. James Pannacciulli Systems (mt) Media Temple
GNU Bash An Introduction to Advanced Usage James Pannacciulli Systems Engineer @ (mt) Media Temple http://talk.jpnc.info/bash_oscon_2014.pdf Notes about the presentation: This talk assumes you are familiar
More informationSprite an animation manipulation language Language Reference Manual
Sprite an animation manipulation language Language Reference Manual Team Leader Dave Smith Team Members Dan Benamy John Morales Monica Ranadive Table of Contents A. Introduction...3 B. Lexical Conventions...3
More informationRetrieving Data Using the SQL SELECT Statement. Copyright 2004, Oracle. All rights reserved.
Retrieving Data Using the SQL SELECT Statement Objectives After completing this lesson, you should be able to do the following: List the capabilities of SQL SELECT statements Execute a basic SELECT statement
More information