166 @return dictionary with the keys 'error' and 'warnings' which |
166 @return dictionary with the keys 'error' and 'warnings' which |
167 hold a list containing details about the error/ warnings |
167 hold a list containing details about the error/ warnings |
168 (file name, line number, column, codestring (only at syntax |
168 (file name, line number, column, codestring (only at syntax |
169 errors), the message, a list with arguments for the message) |
169 errors), the message, a list with arguments for the message) |
170 """ |
170 """ |
171 import jasy.script.parse.Parser as jsParser |
171 import jasy.script.parse.Parser as jsParser # __IGNORE_WARNING_I102__ |
172 import jasy.script.tokenize.Tokenizer as jsTokenizer |
172 import jasy.script.tokenize.Tokenizer as jsTokenizer # __IGNORE_WARNING_I102__ |
173 |
173 |
174 codestring = normalizeCode(codestring) |
174 codestring = normalizeCode(codestring) |
175 |
175 |
176 try: |
176 try: |
177 jsParser.parse(codestring, file) |
177 jsParser.parse(codestring, file) |