-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
IMPROVED: all JavaScript reserved-words are reserved!
- Loading branch information
1 parent
27da463
commit f2f4c60
Showing
9 changed files
with
66 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
&ArtStandardLib.w | ||
"" | ||
abstract else instanceof super | ||
boolean enum int switch | ||
break export interface synchronized | ||
byte extends let this | ||
case false long throw | ||
catch final native throws | ||
char finally new transient | ||
class float null true | ||
const for package try | ||
continue function private typeof | ||
debugger goto protected var | ||
default if public void | ||
delete implements return volatile | ||
do import short while | ||
double in static with |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1 @@ | ||
words = &ArtStandardLib.w | ||
"" | ||
abstract else instanceof super | ||
boolean enum int switch | ||
break export interface synchronized | ||
byte extends let this | ||
case false long throw | ||
catch final native throws | ||
char finally new transient | ||
class float null true | ||
const for package try | ||
continue function private typeof | ||
debugger goto protected var | ||
default if public void | ||
delete implements return volatile | ||
do import short while | ||
double in static with | ||
each word in words into out = {} | ||
out[word] = true | ||
object &JavaScriptReservedWordList with true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
"use strict"; | ||
let Caf = require("caffeine-script-runtime"); | ||
Caf.defMod(module, () => { | ||
return require("art-standard-lib").w( | ||
"abstract else instanceof super boolean enum int switch break export interface synchronized byte extends let this case false long throw catch final native throws char finally new transient class float null true const for package try continue function private typeof debugger goto protected var default if public void delete implements return volatile do import short while double in static with" | ||
); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,5 @@ | ||
"use strict"; | ||
let Caf = require("caffeine-script-runtime"); | ||
Caf.defMod(module, () => { | ||
let words, out; | ||
words = require("art-standard-lib").w( | ||
"abstract else instanceof super boolean enum int switch break export interface synchronized byte extends let this case false long throw catch final native throws char finally new transient class float null true const for package try continue function private typeof debugger goto protected var default if public void delete implements return volatile do import short while double in static with" | ||
); | ||
return Caf.each2(words, word => (out[word] = true), null, (out = {})); | ||
return Caf.object(require("./JavaScriptReservedWordList"), () => true); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters