salspaugh / splparser

Simple parser for Splunk Processing Language (SPL) written in Python.
Other
35 stars 14 forks source link

left with a strange problem #92

Closed keroro824 closed 11 years ago

keroro824 commented 11 years ago

BeidiChen:splparser BeidiChen$ splparse 'loadjob savedsearch="admin:search:MySavedSearch"' Generating LALR tables Traceback (most recent call last): File "", line 1, in File "splparser/init.py", line 12, in parse return parser.parse(data) File "splparser/parser.py", line 77, in parse parsetree = self.parser.parse(data, lexer=self.lexer, debug=self.log) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/ply/yacc.py", line 261, in parse return self.parsedebug(input,lexer,debug,tracking,tokenfunc) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/ply/yacc.py", line 421, in parsedebug p.callable(pslice) File "splparser/decorators.py", line 21, in helper raise TerminatingSPLSyntaxError(e.message) splparser.exceptions.TerminatingSPLSyntaxError

The problem seems to be "savedsearch". I put it in the loadjob_opt, but it cannot even be parsed.

salspaugh commented 11 years ago

We can look at this today.