Parser mock
This commit is contained in:
		
							parent
							
								
									a02ba712b8
								
							
						
					
					
						commit
						171e581366
					
				
							
								
								
									
										19
									
								
								parser/parser.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								parser/parser.go
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,19 @@
 | 
			
		||||
package parser
 | 
			
		||||
 | 
			
		||||
import (
 | 
			
		||||
	"github.com/localhots/punk/lexer"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
type (
 | 
			
		||||
	Parser struct {
 | 
			
		||||
		lex      *lexer.Lexer
 | 
			
		||||
		selector string
 | 
			
		||||
	}
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
func New(lex *lexer.Lexer, selector string) {
 | 
			
		||||
	return &Parser{
 | 
			
		||||
		lex:      lex,
 | 
			
		||||
		selector: selector,
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user