summaryrefslogtreecommitdiff
path: root/static/js/lang.js
diff options
context:
space:
mode:
authorLinus Lee <linus@thesephist.com>2020-09-24 08:22:22 -0400
committerLinus Lee <linus@thesephist.com>2020-09-24 08:22:22 -0400
commit342fd2e8d671ce81588b599ec8f33eb50ba9665c (patch)
tree31e3a6b1a11e2b6fe6abb8cde8daa085f897c882 /static/js/lang.js
parente6797461f8372c6b0740d75ee73015f6ec561a68 (diff)
downloadtabloid-fake-closure-342fd2e8d671ce81588b599ec8f33eb50ba9665c.tar.gz
tabloid-fake-closure-342fd2e8d671ce81588b599ec8f33eb50ba9665c.zip
Clean up some keywords + mobile view
Diffstat (limited to 'static/js/lang.js')
-rw-r--r--static/js/lang.js11
1 files changed, 6 insertions, 5 deletions
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) {