Differences From Artifact [d47e2b014f260d66]:
- File
polemy/parse.d
- 2010-11-08 16:40:55 - part of checkin [aa770610d3] on branch trunk - added layered-let (user: kinaba) [annotate]
To Artifact [fe5c9fee07b98701]:
- File
polemy/parse.d
- 2010-11-09 05:19:20 - part of checkin [8de5b49cdf] on branch trunk - split tricks module into a separate package. (user: kinaba) [annotate]
18 private this( const LexPosition pos, string msg ) 18 private this( const LexPosition pos, string msg )
19 { super(sprintf!"%s [%s]"(msg, pos)); this.pos = pos; } 19 { super(sprintf!"%s [%s]"(msg, pos)); this.pos = pos; }
20 } 20 }
21 21
22 private auto createException(Lexer)(Lexer lex, string msg) 22 private auto createException(Lexer)(Lexer lex, string msg)
23 { return new ParseException(lex.empty?null:lex.front.pos, msg); } 23 { return new ParseException(lex.empty?null:lex.front.pos, msg); }
24 24
25 /// Entry point of this module | 25 /// Entry points of this module
26 26
27 auto parseString(S, T...)(S str, T fn_ln_cn) 27 auto parseString(S, T...)(S str, T fn_ln_cn)
28 { return parserFromString(str, fn_ln_cn).parse(); } 28 { return parserFromString(str, fn_ln_cn).parse(); }
29 29
30 auto parseFile(S, T...)(S filename,T ln_cn) 30 auto parseFile(S, T...)(S filename,T ln_cn)
31 { return parserFromString(filename, ln_cn).parse(); } 31 { return parserFromString(filename, ln_cn).parse(); }
32 32