mirror of
				https://github.com/KevinMidboe/linguist.git
				synced 2025-10-29 17:50:22 +00:00 
			
		
		
		
	added .moo (parser definitions) to Mercury extension list
This commit is contained in:
		
							
								
								
									
										5
									
								
								samples/Moocode/hello.moo
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								samples/Moocode/hello.moo
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,5 @@ | ||||
| @program toy:wind | ||||
| this.wound = this.wound + 2; | ||||
| player:tell("You wind up the ", this.name,"."); | ||||
| player.location:announce(player.name, " winds up the ", this.name,"."); | ||||
| . | ||||
							
								
								
									
										19
									
								
								samples/Moocode/toy.moo
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								samples/Moocode/toy.moo
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,19 @@ | ||||
| @verb toy:do_the_work this none this | ||||
| @program toy:do_the_work | ||||
| if (this.wound) | ||||
|   if ($object_utils:isa(this.location,$room)) | ||||
|     this.location:announce_all(this.name," ", this:continue_msg()); | ||||
|     this.wound = this.wound - 1; | ||||
|     if (this.wound) | ||||
|       fork (15) | ||||
|         this:do_the_work(); | ||||
|       endfork | ||||
|     else | ||||
|       this.location:announce_all(this.name, " ", this:wind_down_msg()); | ||||
|     endif | ||||
|   endif | ||||
|   if (this.wound < 0) | ||||
|     this.wound = 0; | ||||
|   endif | ||||
| endif | ||||
| . | ||||
		Reference in New Issue
	
	Block a user