106 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
		
		
			
		
	
	
			106 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
| 
								 | 
							
								# keyword.kwlist for both Python 2 and 3
							 | 
						||
| 
								 | 
							
								python_keywords = {
							 | 
						||
| 
								 | 
							
								    "False",
							 | 
						||
| 
								 | 
							
								    "None",
							 | 
						||
| 
								 | 
							
								    "True",
							 | 
						||
| 
								 | 
							
								    "and",
							 | 
						||
| 
								 | 
							
								    "as",
							 | 
						||
| 
								 | 
							
								    "assert",
							 | 
						||
| 
								 | 
							
								    "async",
							 | 
						||
| 
								 | 
							
								    "await",
							 | 
						||
| 
								 | 
							
								    "break",
							 | 
						||
| 
								 | 
							
								    "class",
							 | 
						||
| 
								 | 
							
								    "continue",
							 | 
						||
| 
								 | 
							
								    "def",
							 | 
						||
| 
								 | 
							
								    "del",
							 | 
						||
| 
								 | 
							
								    "elif",
							 | 
						||
| 
								 | 
							
								    "else",
							 | 
						||
| 
								 | 
							
								    "except",
							 | 
						||
| 
								 | 
							
								    "exec",
							 | 
						||
| 
								 | 
							
								    "finally",
							 | 
						||
| 
								 | 
							
								    "for",
							 | 
						||
| 
								 | 
							
								    "from",
							 | 
						||
| 
								 | 
							
								    "global",
							 | 
						||
| 
								 | 
							
								    "if",
							 | 
						||
| 
								 | 
							
								    "import",
							 | 
						||
| 
								 | 
							
								    "in",
							 | 
						||
| 
								 | 
							
								    "is",
							 | 
						||
| 
								 | 
							
								    "lambda",
							 | 
						||
| 
								 | 
							
								    "nonlocal",
							 | 
						||
| 
								 | 
							
								    "not",
							 | 
						||
| 
								 | 
							
								    "or",
							 | 
						||
| 
								 | 
							
								    "pass",
							 | 
						||
| 
								 | 
							
								    "print",
							 | 
						||
| 
								 | 
							
								    "raise",
							 | 
						||
| 
								 | 
							
								    "return",
							 | 
						||
| 
								 | 
							
								    "try",
							 | 
						||
| 
								 | 
							
								    "while",
							 | 
						||
| 
								 | 
							
								    "with",
							 | 
						||
| 
								 | 
							
								    "yield",
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								# This is a set of R reserved words that cannot be used as function
							 | 
						||
| 
								 | 
							
								# argument names.
							 | 
						||
| 
								 | 
							
								#
							 | 
						||
| 
								 | 
							
								# Reserved words can be obtained from R's help pages by executing the
							 | 
						||
| 
								 | 
							
								# statement below:
							 | 
						||
| 
								 | 
							
								# > ?reserved
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								r_keywords = {
							 | 
						||
| 
								 | 
							
								    "if",
							 | 
						||
| 
								 | 
							
								    "else",
							 | 
						||
| 
								 | 
							
								    "repeat",
							 | 
						||
| 
								 | 
							
								    "while",
							 | 
						||
| 
								 | 
							
								    "function",
							 | 
						||
| 
								 | 
							
								    "for",
							 | 
						||
| 
								 | 
							
								    "in",
							 | 
						||
| 
								 | 
							
								    "next",
							 | 
						||
| 
								 | 
							
								    "break",
							 | 
						||
| 
								 | 
							
								    "TRUE",
							 | 
						||
| 
								 | 
							
								    "FALSE",
							 | 
						||
| 
								 | 
							
								    "NULL",
							 | 
						||
| 
								 | 
							
								    "Inf",
							 | 
						||
| 
								 | 
							
								    "NaN",
							 | 
						||
| 
								 | 
							
								    "NA",
							 | 
						||
| 
								 | 
							
								    "NA_integer_",
							 | 
						||
| 
								 | 
							
								    "NA_real_",
							 | 
						||
| 
								 | 
							
								    "NA_complex_",
							 | 
						||
| 
								 | 
							
								    "NA_character_",
							 | 
						||
| 
								 | 
							
								    "...",
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								# This is a set of Julia reserved words that cannot be used as function
							 | 
						||
| 
								 | 
							
								# argument names.
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								julia_keywords = {
							 | 
						||
| 
								 | 
							
								    "baremodule",
							 | 
						||
| 
								 | 
							
								    "begin",
							 | 
						||
| 
								 | 
							
								    "break",
							 | 
						||
| 
								 | 
							
								    "catch",
							 | 
						||
| 
								 | 
							
								    "const",
							 | 
						||
| 
								 | 
							
								    "continue",
							 | 
						||
| 
								 | 
							
								    "do",
							 | 
						||
| 
								 | 
							
								    "else",
							 | 
						||
| 
								 | 
							
								    "elseif",
							 | 
						||
| 
								 | 
							
								    "end",
							 | 
						||
| 
								 | 
							
								    "export",
							 | 
						||
| 
								 | 
							
								    "false",
							 | 
						||
| 
								 | 
							
								    "finally",
							 | 
						||
| 
								 | 
							
								    "for",
							 | 
						||
| 
								 | 
							
								    "function",
							 | 
						||
| 
								 | 
							
								    "global",
							 | 
						||
| 
								 | 
							
								    "if",
							 | 
						||
| 
								 | 
							
								    "import",
							 | 
						||
| 
								 | 
							
								    "let",
							 | 
						||
| 
								 | 
							
								    "local",
							 | 
						||
| 
								 | 
							
								    "macro",
							 | 
						||
| 
								 | 
							
								    "module",
							 | 
						||
| 
								 | 
							
								    "quote",
							 | 
						||
| 
								 | 
							
								    "return",
							 | 
						||
| 
								 | 
							
								    "struct",
							 | 
						||
| 
								 | 
							
								    "true",
							 | 
						||
| 
								 | 
							
								    "try",
							 | 
						||
| 
								 | 
							
								    "using",
							 | 
						||
| 
								 | 
							
								    "while",
							 | 
						||
| 
								 | 
							
								}
							 |