From c0659c32316858d9b0fc081d5803cf2fea0bfe5b Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 15 Jan 2021 15:46:37 +0100 Subject: add patch for 8.0 from https://github.com/weltling/parle/pull/22 --- REFLECTION | 108 +++++++++++++++++++++++++++++++++++-------------------------- 1 file changed, 63 insertions(+), 45 deletions(-) (limited to 'REFLECTION') diff --git a/REFLECTION b/REFLECTION index a69a0dd..0178b3c 100644 --- a/REFLECTION +++ b/REFLECTION @@ -1,7 +1,7 @@ Extension [ extension #119 parle version 0.8.1 ] { - Constants [1] { - Constant [ boolean Parle\INTERNAL_UTF32 ] { } + Constant [ bool Parle\INTERNAL_UTF32 ] { } } - Classes [10] { @@ -29,9 +29,9 @@ Extension [ extension #119 parle version 0.8.1 ] { Class [ class Parle\Token ] { - Constants [3] { - Constant [ public integer EOI ] { 0 } - Constant [ public integer UNKNOWN ] { 65535 } - Constant [ public integer SKIP ] { 65534 } + Constant [ public int EOI ] { 0 } + Constant [ public int UNKNOWN ] { 65535 } + Constant [ public int SKIP ] { 65534 } } - Static properties [0] { @@ -52,11 +52,11 @@ Extension [ extension #119 parle version 0.8.1 ] { Class [ class Parle\Lexer ] { - Constants [5] { - Constant [ public integer ICASE ] { 1 } - Constant [ public integer DOT_NOT_LF ] { 2 } - Constant [ public integer DOT_NOT_CRLF ] { 4 } - Constant [ public integer SKIP_WS ] { 8 } - Constant [ public integer MATCH_ZERO_LEN ] { 16 } + Constant [ public int ICASE ] { 1 } + Constant [ public int DOT_NOT_LF ] { 2 } + Constant [ public int DOT_NOT_CRLF ] { 4 } + Constant [ public int SKIP_WS ] { 8 } + Constant [ public int MATCH_ZERO_LEN ] { 16 } } - Static properties [0] { @@ -75,6 +75,10 @@ Extension [ extension #119 parle version 0.8.1 ] { - Methods [9] { Method [ public method push ] { + + - Parameters [1] { + Parameter #0 [ ...$args ] + } } Method [ public method getToken ] { @@ -106,11 +110,16 @@ Extension [ extension #119 parle version 0.8.1 ] { Method [ public method reset ] { - Parameters [1] { - Parameter #0 [ integer $pos ] + Parameter #0 [ int $pos ] } } Method [ public method insertMacro ] { + + - Parameters [2] { + Parameter #0 [ string $name ] + Parameter #1 [ string $reg ] + } } Method [ public method dump ] { @@ -122,7 +131,7 @@ Extension [ extension #119 parle version 0.8.1 ] { Method [ public method callout ] { - Parameters [2] { - Parameter #0 [ integer $id ] + Parameter #0 [ int $id ] Parameter #1 [ $callback ] } } @@ -132,11 +141,11 @@ Extension [ extension #119 parle version 0.8.1 ] { Class [ class Parle\RLexer ] { - Constants [5] { - Constant [ public integer ICASE ] { 1 } - Constant [ public integer DOT_NOT_LF ] { 2 } - Constant [ public integer DOT_NOT_CRLF ] { 4 } - Constant [ public integer SKIP_WS ] { 8 } - Constant [ public integer MATCH_ZERO_LEN ] { 16 } + Constant [ public int ICASE ] { 1 } + Constant [ public int DOT_NOT_LF ] { 2 } + Constant [ public int DOT_NOT_CRLF ] { 4 } + Constant [ public int SKIP_WS ] { 8 } + Constant [ public int MATCH_ZERO_LEN ] { 16 } } - Static properties [0] { @@ -155,6 +164,10 @@ Extension [ extension #119 parle version 0.8.1 ] { - Methods [10] { Method [ public method push ] { + + - Parameters [1] { + Parameter #0 [ ...$args ] + } } Method [ public method getToken ] { @@ -186,7 +199,7 @@ Extension [ extension #119 parle version 0.8.1 ] { Method [ public method reset ] { - Parameters [1] { - Parameter #0 [ integer $pos ] + Parameter #0 [ int $pos ] } } @@ -195,10 +208,15 @@ Extension [ extension #119 parle version 0.8.1 ] { - Parameters [1] { Parameter #0 [ string $state ] } - - Return [ integer ] + - Return [ int ] } Method [ public method insertMacro ] { + + - Parameters [2] { + Parameter #0 [ string $name ] + Parameter #1 [ string $reg ] + } } Method [ public method dump ] { @@ -210,7 +228,7 @@ Extension [ extension #119 parle version 0.8.1 ] { Method [ public method callout ] { - Parameters [2] { - Parameter #0 [ integer $id ] + Parameter #0 [ int $id ] Parameter #1 [ $callback ] } } @@ -220,14 +238,14 @@ Extension [ extension #119 parle version 0.8.1 ] { Class [ class Parle\Parser ] { - Constants [8] { - Constant [ public integer ACTION_ERROR ] { 0 } - Constant [ public integer ACTION_SHIFT ] { 1 } - Constant [ public integer ACTION_REDUCE ] { 2 } - Constant [ public integer ACTION_GOTO ] { 3 } - Constant [ public integer ACTION_ACCEPT ] { 4 } - Constant [ public integer ERROR_SYNTAX ] { 0 } - Constant [ public integer ERROR_NON_ASSOCIATIVE ] { 1 } - Constant [ public integer ERROR_UNKNOWN_TOKEN ] { 2 } + Constant [ public int ACTION_ERROR ] { 0 } + Constant [ public int ACTION_SHIFT ] { 1 } + Constant [ public int ACTION_REDUCE ] { 2 } + Constant [ public int ACTION_GOTO ] { 3 } + Constant [ public int ACTION_ACCEPT ] { 4 } + Constant [ public int ERROR_SYNTAX ] { 0 } + Constant [ public int ERROR_NON_ASSOCIATIVE ] { 1 } + Constant [ public int ERROR_UNKNOWN_TOKEN ] { 2 } } - Static properties [0] { @@ -289,7 +307,7 @@ Extension [ extension #119 parle version 0.8.1 ] { Parameter #0 [ string $name ] Parameter #1 [ string $rule ] } - - Return [ integer ] + - Return [ int ] } Method [ public method validate ] { @@ -298,7 +316,7 @@ Extension [ extension #119 parle version 0.8.1 ] { Parameter #0 [ string $data ] Parameter #1 [ Parle\Lexer $lexer ] } - - Return [ boolean ] + - Return [ bool ] } Method [ public method tokenId ] { @@ -306,13 +324,13 @@ Extension [ extension #119 parle version 0.8.1 ] { - Parameters [1] { Parameter #0 [ string $tok ] } - - Return [ integer ] + - Return [ int ] } Method [ public method sigil ] { - Parameters [1] { - Parameter #0 [ integer $idx ] + Parameter #0 [ int $idx ] } - Return [ string ] } @@ -354,7 +372,7 @@ Extension [ extension #119 parle version 0.8.1 ] { Method [ public method reset ] { - Parameters [1] { - Parameter #0 [ integer $tok ] + Parameter #0 [ int $tok ] } } } @@ -363,14 +381,14 @@ Extension [ extension #119 parle version 0.8.1 ] { Class [ class Parle\RParser ] { - Constants [8] { - Constant [ public integer ACTION_ERROR ] { 0 } - Constant [ public integer ACTION_SHIFT ] { 1 } - Constant [ public integer ACTION_REDUCE ] { 2 } - Constant [ public integer ACTION_GOTO ] { 3 } - Constant [ public integer ACTION_ACCEPT ] { 4 } - Constant [ public integer ERROR_SYNTAX ] { 0 } - Constant [ public integer ERROR_NON_ASSOCIATIVE ] { 1 } - Constant [ public integer ERROR_UNKNOWN_TOKEN ] { 2 } + Constant [ public int ACTION_ERROR ] { 0 } + Constant [ public int ACTION_SHIFT ] { 1 } + Constant [ public int ACTION_REDUCE ] { 2 } + Constant [ public int ACTION_GOTO ] { 3 } + Constant [ public int ACTION_ACCEPT ] { 4 } + Constant [ public int ERROR_SYNTAX ] { 0 } + Constant [ public int ERROR_NON_ASSOCIATIVE ] { 1 } + Constant [ public int ERROR_UNKNOWN_TOKEN ] { 2 } } - Static properties [0] { @@ -432,7 +450,7 @@ Extension [ extension #119 parle version 0.8.1 ] { Parameter #0 [ string $name ] Parameter #1 [ string $rule ] } - - Return [ integer ] + - Return [ int ] } Method [ public method validate ] { @@ -441,7 +459,7 @@ Extension [ extension #119 parle version 0.8.1 ] { Parameter #0 [ string $data ] Parameter #1 [ Parle\RLexer $lexer ] } - - Return [ boolean ] + - Return [ bool ] } Method [ public method tokenId ] { @@ -449,13 +467,13 @@ Extension [ extension #119 parle version 0.8.1 ] { - Parameters [1] { Parameter #0 [ string $tok ] } - - Return [ integer ] + - Return [ int ] } Method [ public method sigil ] { - Parameters [1] { - Parameter #0 [ integer $idx ] + Parameter #0 [ int $idx ] } - Return [ string ] } @@ -497,7 +515,7 @@ Extension [ extension #119 parle version 0.8.1 ] { Method [ public method reset ] { - Parameters [1] { - Parameter #0 [ integer $tok ] + Parameter #0 [ int $tok ] } } } -- cgit