| 
									
										
										
										
											2010-04-18 19:33:18 -04:00
										 |  |  | ! Copyright (C) 2010 Doug Coleman. | 
					
						
							|  |  |  | ! See http://factorcode.org/license.txt for BSD license. | 
					
						
							| 
									
										
										
										
											2016-04-07 10:21:41 -04:00
										 |  |  | USING: alien.parser cuda.libraries fry kernel lexer namespaces | 
					
						
							|  |  |  | parser ;
 | 
					
						
							| 
									
										
										
										
											2010-04-18 19:33:18 -04:00
										 |  |  | IN: cuda.syntax | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-04-19 01:46:03 -04:00
										 |  |  | SYNTAX: CUDA-LIBRARY: | 
					
						
							| 
									
										
										
										
											2015-07-21 19:36:24 -04:00
										 |  |  |     scan-token scan-word scan-object | 
					
						
							| 
									
										
										
										
											2010-05-20 20:56:20 -04:00
										 |  |  |     '[ _ _ add-cuda-library ] | 
					
						
							|  |  |  |     [ current-cuda-library set-global ] bi ;
 | 
					
						
							| 
									
										
										
										
											2010-04-18 19:33:18 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | SYNTAX: CUDA-FUNCTION: | 
					
						
							| 
									
										
										
										
											2015-06-08 15:38:38 -04:00
										 |  |  |     scan-token [ create-word-in current-cuda-library get ] keep
 | 
					
						
							| 
									
										
										
										
											2016-04-06 16:11:32 -04:00
										 |  |  |     scan-c-args define-cuda-function ;
 | 
					
						
							| 
									
										
										
										
											2010-04-18 19:33:18 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-05-20 18:45:35 -04:00
										 |  |  | SYNTAX: CUDA-GLOBAL: | 
					
						
							| 
									
										
										
										
											2015-06-08 15:38:38 -04:00
										 |  |  |     scan-token [ create-word-in current-cuda-library get ] keep
 | 
					
						
							| 
									
										
										
										
											2010-05-20 18:45:35 -04:00
										 |  |  |     define-cuda-global ;
 |