mirror of
				https://github.com/flynx/Course-JavaScript.git
				synced 2025-11-04 05:50:08 +00:00 
			
		
		
		
	tweaking docs...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									f70950c545
								
							
						
					
					
						commit
						b2eff8c2c4
					
				@ -4,6 +4,12 @@
 | 
				
			|||||||
*
 | 
					*
 | 
				
			||||||
**********************************************************************/
 | 
					**********************************************************************/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/* XXX for some odd reason this breaks the interpreter...
 | 
				
			||||||
 | 
					Array.prototype.toString = function(){
 | 
				
			||||||
 | 
						return '[ ' + this.join(', ') + ' ]'
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/*********************************************************************/
 | 
					/*********************************************************************/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -163,7 +169,7 @@ var NAMESPACE = {
 | 
				
			|||||||
				code = code.split(/^\s*(['"])(.*)\1\s*$/m)[2]
 | 
									code = code.split(/^\s*(['"])(.*)\1\s*$/m)[2]
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			console.log(code)
 | 
								//console.log(code)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			var res = []
 | 
								var res = []
 | 
				
			||||||
			code = code
 | 
								code = code
 | 
				
			||||||
@ -385,7 +391,7 @@ var NAMESPACE = {
 | 
				
			|||||||
var BOOTSTRAP = [
 | 
					var BOOTSTRAP = [
 | 
				
			||||||
'(------------------------------------------------------------------------------',
 | 
					'(------------------------------------------------------------------------------',
 | 
				
			||||||
'',
 | 
					'',
 | 
				
			||||||
' Slang is a simple and complete [S]tack [lang]uage).',
 | 
					' Slang is a simple and complete [S]tack [lang]uage.',
 | 
				
			||||||
'',
 | 
					'',
 | 
				
			||||||
' Slang was designed for three main reasons:',
 | 
					' Slang was designed for three main reasons:',
 | 
				
			||||||
'	- a means to experiment with several aspects of language design,',
 | 
					'	- a means to experiment with several aspects of language design,',
 | 
				
			||||||
@ -415,9 +421,8 @@ var BOOTSTRAP = [
 | 
				
			|||||||
' or evaluated.',
 | 
					' or evaluated.',
 | 
				
			||||||
'',
 | 
					'',
 | 
				
			||||||
' The evaluated entity is traditionally called a "word" (function in non-stack',
 | 
					' The evaluated entity is traditionally called a "word" (function in non-stack',
 | 
				
			||||||
' languages).',
 | 
					' languages). The only thing that makes a word different from any other entity',
 | 
				
			||||||
' The only thing that makes a word different from any other entity is',
 | 
					' is that it matches a key in the namespace, as mentioned above.',
 | 
				
			||||||
' that it matches a key in the namespace, as mentioned above.',
 | 
					 | 
				
			||||||
'',
 | 
					'',
 | 
				
			||||||
' In Slang evaluation is done simply by executing the value of the matched',
 | 
					' In Slang evaluation is done simply by executing the value of the matched',
 | 
				
			||||||
' key/value pair in the namespace. An over-simplified way to explain',
 | 
					' key/value pair in the namespace. An over-simplified way to explain',
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user