akhahaha / time-travel-shell Goto Github PK
View Code? Open in Web Editor NEWUCLA CS 111 | Lab 1: Shell-script parallelisation
Home Page: http://lasr.cs.ucla.edu/vahab/cs111/labs/lab1/Lab1.html
UCLA CS 111 | Lab 1: Shell-script parallelisation
Home Page: http://lasr.cs.ucla.edu/vahab/cs111/labs/lab1/Lab1.html
Implement time-travelling parallelization between top-level command trees, and between sequence commands if possible.
Skeleton code only supports subshells as trees, which require them to be single-line complete commands.
Do we need to change the skeleton code or can we leave it as is?
Implement command execution so that the output runs like the input script.
I have some notes from the TA available at https://gist.github.com/akhahaha/8644128.
Implement get_depends() to get files required by a command tree. Function currently located in read-command.c.
White space consisting of space, tab, and newline. Newline is special: as described above, it can substitute for semicolon. Also, although white space can ordinarily appear before and after any token, the only tokens that newlines can appear before are (, ), and the first words of simple commands. Newlines may follow any special token other than < and >.
Ensure there are no memory leaks.
Comments, each consisting of a # that is not immediately preceded by an ordinary token, followed by characters up to (but not including) the next newline.
So do words with '#' in or immediately following them become syntax errors or stay words?
If your shell's input does not fall within the above subset, your implementation should output to stderr a syntax error message that starts with the line number and a colon, and should then exit.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.