Documentation ¶
Index ¶
- func Compile(config_ OgConfig) error
- func Parse(filePath, str string) string
- func ParseInterpret(filePath, str string) string
- func Preproc(str string) string
- func ProcessFile(filePath string, data string, isInterpret bool) (string, error)
- func RunInterpreter()
- type ErrorHandler
- type ErrorListener
- type OgConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseInterpret ¶ added in v0.3.0
func ProcessFile ¶ added in v0.1.1
func RunInterpreter ¶ added in v0.3.0
func RunInterpreter()
Types ¶
type ErrorHandler ¶ added in v0.3.0
type ErrorHandler struct {
*antlr.DefaultErrorStrategy
}
func NewErrorHandler ¶ added in v0.3.0
func NewErrorHandler() *ErrorHandler
func (ErrorHandler) Recover ¶ added in v0.3.0
func (this ErrorHandler) Recover(p antlr.Parser, r antlr.RecognitionException)
type ErrorListener ¶ added in v0.3.0
type ErrorListener struct { *antlr.DefaultErrorListener // contains filtered or unexported fields }
func NewErrorListener ¶ added in v0.3.0
func NewErrorListener(filePath, source string) *ErrorListener
func (*ErrorListener) SyntaxError ¶ added in v0.3.0
func (this *ErrorListener) SyntaxError(rec antlr.Recognizer, offendingSymbol interface{}, line, column int, msg string, e antlr.RecognitionException)
Click to show internal directories.
Click to hide internal directories.