Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update tutorial.mec #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tutorial.mec
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Let's define a table representing a group of students
"Yang" 19 "Physics" 3.2
"Lisa" 19 "Comp Sci" 3.9]

This code creates a table called `students`, which is global in scope as denoted by the hashtag `#`. The table has three columns (`name`, `age`, and `gpa`) and three rows. Number values don't distinguish between integer and floating point representations, which can be mixed freely.
This code creates a table called `students`, which is global in scope as denoted by the hashtag `#`. The table has four columns (`name`, `age`, `major`, and `gpa`) and three rows. Number values don't distinguish between integer and floating point representations, which can be mixed freely.

Mech programs are composed of "blocks" of code like the one above. A block is indented from normal text with (at least) two spaces, and continues until the next non-indented paragraph. Each block of code can do three things:

Expand All @@ -41,4 +41,4 @@ Within a block, expressions are computed in the order they are written, as with

Since th GPA changed, every block that depends on this GPA will update as well. This is the essence of a dataflow language; although we cannot specify control flow as in an imperative language, we can specify the data, and this in turn causes execution to happen as defined by the data dependencies of blocks.

Up Next: <a href="/#/docs/help.mec">Getting Help</a>
Up Next: <a href="/#/docs/help.mec">Getting Help</a>