Advertisement
Guest User

Untitled

a guest
Oct 16th, 2020
15
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. // Read the next token, dealing with nested IFs
  2. function next() {
  3. const n = read()
  4. if (n == "IF") {
  5. while (next() != "FI")
  6. ;
  7. }
  8. return n
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement