Skip to content

Commit

Permalink
adding type resolution to README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
castrod committed Dec 11, 2023
1 parent 0fd22f4 commit fb4571f
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ where `tau_example.tau` is a TAU program.

There are a lot examples of TAU programs in the `examples/tau` directory.

# Understanding TAU language syntax
# Understanding TAU language

"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."

Expand Down Expand Up @@ -112,6 +112,18 @@ where `bf_rec_relation` stands for a boolean function recursive relation, `bf_re

"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."

## Type resolution

Type resolution is used to ensure that all the Boolean Algebra operations are consistente. Types could be specified at two levels:

* At the boolean algebra expression level: in this case, the type of the expression is the type of one of the constants
of the boolean expression, there is no need to provide the type in each of them.

* At the quantifier expression level: in this case, the type of a variable is specified and all the
underlying boolean algebra expressions are typed accordingly.

In both cases, if there is a missmatch between the types, an error is raised during the type resolution phase, i.e. before executing the program.

# Understanding TAU language execution

"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
Expand Down

0 comments on commit fb4571f

Please sign in to comment.