mirror of
				https://codeberg.org/NLnet/takentaal.git
				synced 2025-10-26 09:34:36 +00:00 
			
		
		
		
	feat: add instructions for TS parser generation
This commit is contained in:
		
							parent
							
								
									d924d61d56
								
							
						
					
					
						commit
						1e4561880b
					
				
					 2 changed files with 11 additions and 2 deletions
				
			
		
							
								
								
									
										1
									
								
								.gitignore
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								.gitignore
									
										
									
									
										vendored
									
									
								
							|  | @ -1 +1,2 @@ | ||||||
| .antlr | .antlr | ||||||
|  | takentaal | ||||||
							
								
								
									
										10
									
								
								README.md
									
										
									
									
									
								
							
							
						
						
									
										10
									
								
								README.md
									
										
									
									
									
								
							|  | @ -4,6 +4,14 @@ | ||||||
| 
 | 
 | ||||||
| ```bash | ```bash | ||||||
| nix develop | nix develop | ||||||
| antlr4-parse takentaal.g4 takentaal example -tree | 
 | ||||||
|  | # Inspect lexer | ||||||
| antlr4-parse takentaal.g4 takentaal example -tokens | antlr4-parse takentaal.g4 takentaal example -tokens | ||||||
|  | 
 | ||||||
|  | # Inspect parser | ||||||
|  | antlr4-parse takentaal.g4 takentaal example -tree | ||||||
|  | antlr4-parse takentaal.g4 takentaal example -gui | ||||||
|  | 
 | ||||||
|  | # Generate TypeScript parser | ||||||
|  | antlr4 -Dlanguage=TypeScript -o takentaal takentaal.g4 | ||||||
| `` | `` | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue