Skip to content

Commit c548dca

Browse files
authored
Update README.md
1 parent 74eb60b commit c548dca

File tree

1 file changed

+2
-26
lines changed

1 file changed

+2
-26
lines changed

README.md

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -17,30 +17,6 @@ Bored? Want to hang out with friends, but not sure who's available? This app wil
1717
A simple scrum helper app to keep track of what people on your teams are working on, without the scrum meeting.
1818

1919

20-
### rtype
20+
### [Runtime rtype parser](https://github.com/ericelliott/rtype/issues/62) #advanced
2121

22-
#### [Runtime rtype parser](https://github.com/ericelliott/rtype/issues/62) #advanced
23-
24-
You'll learn about how programming language compilers parse source code, extract its meaning, and compile output from it.
25-
26-
Write a function that takes an rtype interface description as a string and returns an object that can be used for runtime type checking.
27-
28-
```js
29-
interface TypeChecker {
30-
checkInputs: Predicate,
31-
checkOutput: Predicate,
32-
checkError: Predicate
33-
}
34-
35-
parseSignature(signature: String) => TypeChecker
36-
```
37-
38-
The target function will get wrapped by a utility such as [rfx](https://github.com/ericelliott/rfx). When the wrapper function gets called, it will pass inputs to `checkInputs()`. If it returns true, only then does the original function get called. When the function returns, its output will be similarly checked by `checkOutput()` before it gets returned to the original caller. If the function throws, the error will also be checked, by `checkError()`.
39-
40-
Useful background:
41-
42-
* [How to Build a Compiler](https://www.youtube.com/watch?v=Tar4WgAfMr4) Great video by James Kyle
43-
* [How to Build a Compiler source](https://github.com/thejameskyle/the-super-tiny-compiler) Source companion to the James Kyle video
44-
* The [Stanford Compilers course](https://www.coursera.org/course/compilers) (free online lectures)
45-
46-
If you're curious about types, see the [introduction to types](https://class.coursera.org/compilers/lecture/45) from the Stanford Compiler course.
22+
Contribute to an open-source library to add dynamic type checking to JavaScript.

0 commit comments

Comments
 (0)