Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2020-07-20 18:24:58 +03:00
parent fd2eb0e0ed
commit e685e3d74a

View File

@ -203,6 +203,7 @@ function(name, pre, post){
// ...manually this is trivial, automating it would complicate things,
// will think about it when we need this feature more than once...
//
// XXX should type handlers produce errors???
// XXX add support for ParserError exception handling...
// XXX should -help should work for any command? ..not just nested parsers?
// ...should we indicate which thinks have more "-help"??
@ -210,6 +211,7 @@ function(name, pre, post){
var Parser =
module.Parser =
object.Constructor('Parser', {
// XXX should type handlers produce errors???
typeHandlers: {
int: parseInt,
float: parseFloat,