mirror of
				https://github.com/Z3Prover/z3
				synced 2025-11-04 13:29:11 +00:00 
			
		
		
		
	stub for treesitter
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
		
							parent
							
								
									5c18ce8cea
								
							
						
					
					
						commit
						d10efa667a
					
				
					 1 changed files with 14 additions and 0 deletions
				
			
		
							
								
								
									
										14
									
								
								genaisrc/treesitter.genai.mts
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								genaisrc/treesitter.genai.mts
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,14 @@
 | 
			
		|||
script({
 | 
			
		||||
    title: "Invoke LLM code update",
 | 
			
		||||
    files: "src/muz/spacer/spacer_qe_project.cpp"
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
const inputFile = env.files[0];
 | 
			
		||||
const { captures } = await parsers.code(inputFile);
 | 
			
		||||
 | 
			
		||||
// pretty-print tree sitter parse tree of captures:
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
console.log(JSON.stringify(captures, null,2))
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue