From 342fd2e8d671ce81588b599ec8f33eb50ba9665c Mon Sep 17 00:00:00 2001 From: Linus Lee Date: Thu, 24 Sep 2020 08:22:22 -0400 Subject: Clean up some keywords + mobile view --- static/js/lang.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'static/js/lang.js') diff --git a/static/js/lang.js b/static/js/lang.js index a69a843..6ecc102 100644 --- a/static/js/lang.js +++ b/static/js/lang.js @@ -103,7 +103,7 @@ const T = { DiscoverHowTo: Symbol('DiscoverHowTo'), With: Symbol('With'), Of: Symbol('Of'), - WeSaid: Symbol('WeSaid'), + RumorHasIt: Symbol('RumorHasIt'), WhatIf: Symbol('WhatIf'), LiesBang: Symbol('LiesBang'), EndOfStory: Symbol('EndOfStory'), @@ -160,9 +160,10 @@ function tokenize(prog) { tokens.push(T.Of); break; } - case 'WE': { - reader.expect('SAID'); - tokens.push(T.WeSaid); + case 'RUMOR': { + reader.expect('HAS'); + reader.expect('IT'); + tokens.push(T.RumorHasIt); break; } case 'WHAT': { @@ -409,7 +410,7 @@ class Parser { body: this.expr(), } } - } else if (next === T.WeSaid) { + } else if (next === T.RumorHasIt) { // block const exprs = []; while (this.tokens.hasNext() && this.tokens.peek() !== T.EndOfStory) { -- cgit v1.2.3-70-g09d2