Bits of the task certainly. However, matching whole, nested compund structures where deelimiters must be balanced rapidly becomes very difficult.
Fair call on the QLALR documentation... there's a high level of assumed knowledge in the examples that are around. You might like the better documented GOLD Parsing System.I do not want to parse the text file from scratch (e.g. use QFile and QString). I am interested in QLALR. But it is hard to start with QLALR due to the poor documentations.
Traditional lex/yacc is powerful. However, it requires additional learning process for a person (like me) who never use it before. I am not sure whether it is worth learning lex/yacc for this simple job I have.
I think the effort of learning lex/yacc, or the theory of operation, is well worth it for the potential to help in many future projects. However, time and effort required to learn this must be offset by your circumstance. Are you parsing one file, or thousands? Are they very variable (numbers of net-lists etc.)? Is the grammar we can see only a subset of a larger possible grammar?




							
								
							
								
    
    
      
    
    
      
    
    
    
    
  
				
				
				
					
  Reply With Quote
    
    
      
    
    
    
    
  
    
    
      
    
  
    
    
      
Bookmarks