Diff
Not logged in

Differences From Artifact [6bec0997c5764737]:

To Artifact [a024e7c2d40e70c4]:


2 2 * Authors: k.inaba 3 3 * License: NYSL 0.9982 http://www.kmonos.net/nysl/ 4 4 * 5 5 * Parser for Polemy programming language 6 6 */ 7 7 module polemy.parse; 8 8 import polemy._common; 9 +import polemy.failure; 9 10 import polemy.lex; 10 11 import polemy.ast; 11 12 12 -/// Thrown when encountered a syntax error 13 - 14 -class ParseException : Exception 15 -{ 16 - mixin ExceptionWithPosition; 17 -} 18 - 19 13 /// Parse a string and return its AST 20 14 /// Throws: ParseException, LexException, UnexpectedEOF 21 15 22 16 AST parseString(S, T...)(S str, T fn_ln_cn) 23 17 { 24 18 return parserFromString(str, fn_ln_cn).parse(); 25 19 }