mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-28 10:19:26 +00:00 
			
		
		
		
	Added support for // comments in liberty parser
This commit is contained in:
		
							parent
							
								
									a139b49401
								
							
						
					
					
						commit
						c1ed2607fb
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		|  | @ -126,6 +126,11 @@ int LibertyParser::lexer(std::string &str) | |||
| 					line++; | ||||
| 			} | ||||
| 			return lexer(str); | ||||
| 		} else if (c == '/') { | ||||
| 			while (c > 0 && c != '\n') | ||||
| 				c = fgetc(f); | ||||
| 			line++; | ||||
| 			return lexer(str); | ||||
| 		} | ||||
| 		ungetc(c, f); | ||||
| 		// fprintf(stderr, "LEX: char >>/<<\n");
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue