Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

14
LINES

< > BotCompany Repo | #1012541 // isJavaKeyword

JavaX fragment (include)

static Set<S> isJavaKeyword_keywords = new HashSet(splitAtSpace([[abstract	continue	for	new	switch
assert	default	goto	package	synchronized
boolean	do	if	private	this
break	double	implements	protected	throw
byte	else	import	public	throws
case	enum	instanceof	return	transient
catch	extends	int	short	try
char	final	interface	static	void
class	finally	long	strictfp	volatile
const	float	native	super	while]]));

static bool isJavaKeyword(S s) {
  ret isJavaKeyword_keywords.contains(s);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1012541
Snippet name: isJavaKeyword
Eternal ID of this version: #1012541/1
Text MD5: 7d07330e5cc8b8aebe4befe102c2473a
Author: stefan
Category: javax / parsing
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-12-06 23:05:57
Source code size: 500 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 306 / 347
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1014801 - allJavaKeywords