build grammer
This commit is contained in:
File diff suppressed because one or more lines are too long
+259
-250
@@ -50,153 +50,158 @@ SWAP=49
|
||||
PERM=50
|
||||
RESHAPE=51
|
||||
RANGE=52
|
||||
TOPK=53
|
||||
BOTK=54
|
||||
PINV=55
|
||||
SUM=56
|
||||
MEAN=57
|
||||
STD=58
|
||||
VAR=59
|
||||
QUARTILE=60
|
||||
PERCENTILE=61
|
||||
QUANTILE=62
|
||||
DOT=63
|
||||
MOMENT=64
|
||||
ANY=65
|
||||
ALL=66
|
||||
EDGE=67
|
||||
GAUSSIAN=68
|
||||
MEDIAN=69
|
||||
MODE=70
|
||||
CUMSUM=71
|
||||
CUMPROD=72
|
||||
TOPK_IND=73
|
||||
BOTK_IND=74
|
||||
CUBIC_EASE=75
|
||||
ELASTIC_EASE=76
|
||||
SINE_EASE=77
|
||||
SMOOTHERSTEP=78
|
||||
DIST=79
|
||||
REMAP=80
|
||||
COSSIM=81
|
||||
COUNT=82
|
||||
FLATTEN=83
|
||||
APPEND=84
|
||||
GET_VALUE=85
|
||||
FLOW_APPLY=86
|
||||
BATCH_SHUFFLE=87
|
||||
MOTION_MASK=88
|
||||
FLOW_TO_IMAGE=89
|
||||
OVERLAY=90
|
||||
PAD=91
|
||||
CROSS=92
|
||||
MATMUL=93
|
||||
RIFE=94
|
||||
BNOT=95
|
||||
BITCOUNT=96
|
||||
SHAPE=97
|
||||
BAND=98
|
||||
XOR=99
|
||||
BOR=100
|
||||
TENSOR=101
|
||||
PUSH=102
|
||||
POP=103
|
||||
CLEAR=104
|
||||
HAS=105
|
||||
GET=106
|
||||
CONCAT=107
|
||||
INT=108
|
||||
FLOAT=109
|
||||
UPPER=110
|
||||
LOWER=111
|
||||
TRIM=112
|
||||
SPLIT=113
|
||||
JOIN=114
|
||||
SUBSTRING=115
|
||||
SUBSTR=116
|
||||
FIND=117
|
||||
REPLACE=118
|
||||
DILATE=119
|
||||
ERODE=120
|
||||
MORPH_OPEN=121
|
||||
MORPH_CLOSE=122
|
||||
RGB_TO_HSV=123
|
||||
HSV_TO_RGB=124
|
||||
INT_TO_RGB=125
|
||||
RGB_TO_INT=126
|
||||
IF=127
|
||||
ELSE=128
|
||||
WHILE=129
|
||||
FOR=130
|
||||
IN=131
|
||||
BREAK=132
|
||||
CONTINUE=133
|
||||
RETURN=134
|
||||
TIMESTAMP=135
|
||||
SORT=136
|
||||
ARGSORT=137
|
||||
ARGMIN=138
|
||||
ARGMAX=139
|
||||
SOFTMAX=140
|
||||
SOFTMIN=141
|
||||
UNIQUE=142
|
||||
FLIP=143
|
||||
COV=144
|
||||
CORR=145
|
||||
ENTROPY=146
|
||||
CROP=147
|
||||
NONE=148
|
||||
NOISE=149
|
||||
RAND=150
|
||||
CAUCHY=151
|
||||
EXPONENTIAL=152
|
||||
LOGNORMAL=153
|
||||
BERNOULLI=154
|
||||
POISSON=155
|
||||
GAMMADIST=156
|
||||
BETADIST=157
|
||||
LAPLACEDIST=158
|
||||
GUMBELDIST=159
|
||||
WEIBULLDIST=160
|
||||
CHI2DIST=161
|
||||
STUDENTTDIST=162
|
||||
PERLIN=163
|
||||
CELLULAR=164
|
||||
PLASMA=165
|
||||
PLUS=166
|
||||
MINUS=167
|
||||
MULT=168
|
||||
DIV=169
|
||||
MOD=170
|
||||
POW=171
|
||||
LSHIFT=172
|
||||
RSHIFT=173
|
||||
GE=174
|
||||
GT=175
|
||||
LE=176
|
||||
LT=177
|
||||
EQ=178
|
||||
EQUEALS=179
|
||||
NE=180
|
||||
PIPE=181
|
||||
LPAREN=182
|
||||
RPAREN=183
|
||||
COMMA=184
|
||||
SEMICOLON=185
|
||||
ARROW=186
|
||||
LBRACKET=187
|
||||
RBRACKET=188
|
||||
QUESTION=189
|
||||
COLON=190
|
||||
LBRACE=191
|
||||
RBRACE=192
|
||||
NUMBER=193
|
||||
CONSTANT=194
|
||||
STRING=195
|
||||
VARIABLE=196
|
||||
SL_COMMENT=197
|
||||
ML_COMMENT=198
|
||||
WS=199
|
||||
LINSPACE=53
|
||||
LOGSPACE=54
|
||||
TOPK=55
|
||||
BOTK=56
|
||||
PINV=57
|
||||
SUM=58
|
||||
MEAN=59
|
||||
STD=60
|
||||
VAR=61
|
||||
QUARTILE=62
|
||||
PERCENTILE=63
|
||||
QUANTILE=64
|
||||
DOT=65
|
||||
MOMENT=66
|
||||
ERF=67
|
||||
ERFINV=68
|
||||
ANY=69
|
||||
ALL=70
|
||||
EDGE=71
|
||||
GAUSSIAN=72
|
||||
MEDIAN=73
|
||||
MODE=74
|
||||
CUMSUM=75
|
||||
CUMPROD=76
|
||||
TOPK_IND=77
|
||||
BOTK_IND=78
|
||||
CUBIC_EASE=79
|
||||
ELASTIC_EASE=80
|
||||
SINE_EASE=81
|
||||
SMOOTHERSTEP=82
|
||||
DIST=83
|
||||
REMAP=84
|
||||
COSSIM=85
|
||||
COUNT=86
|
||||
FLATTEN=87
|
||||
APPEND=88
|
||||
GET_VALUE=89
|
||||
FLOW_APPLY=90
|
||||
BATCH_SHUFFLE=91
|
||||
MOTION_MASK=92
|
||||
FLOW_TO_IMAGE=93
|
||||
OVERLAY=94
|
||||
PAD=95
|
||||
CROSS=96
|
||||
MATMUL=97
|
||||
RIFE=98
|
||||
BNOT=99
|
||||
BITCOUNT=100
|
||||
SHAPE=101
|
||||
BAND=102
|
||||
XOR=103
|
||||
BOR=104
|
||||
TENSOR=105
|
||||
PUSH=106
|
||||
POP=107
|
||||
CLEAR=108
|
||||
HAS=109
|
||||
GET=110
|
||||
CONCAT=111
|
||||
INT=112
|
||||
FLOAT=113
|
||||
UPPER=114
|
||||
LOWER=115
|
||||
TRIM=116
|
||||
SPLIT=117
|
||||
JOIN=118
|
||||
SUBSTRING=119
|
||||
SUBSTR=120
|
||||
FIND=121
|
||||
REPLACE=122
|
||||
DILATE=123
|
||||
ERODE=124
|
||||
MORPH_OPEN=125
|
||||
MORPH_CLOSE=126
|
||||
RGB_TO_HSV=127
|
||||
HSV_TO_RGB=128
|
||||
INT_TO_RGB=129
|
||||
RGB_TO_INT=130
|
||||
IF=131
|
||||
ELSE=132
|
||||
WHILE=133
|
||||
FOR=134
|
||||
IN=135
|
||||
BREAK=136
|
||||
CONTINUE=137
|
||||
RETURN=138
|
||||
TIMESTAMP=139
|
||||
SORT=140
|
||||
ARGSORT=141
|
||||
ARGMIN=142
|
||||
ARGMAX=143
|
||||
SOFTMAX=144
|
||||
SOFTMIN=145
|
||||
UNIQUE=146
|
||||
FLIP=147
|
||||
ROLL=148
|
||||
COV=149
|
||||
CORR=150
|
||||
ENTROPY=151
|
||||
CROP=152
|
||||
NONE=153
|
||||
NOISE=154
|
||||
RAND=155
|
||||
CAUCHY=156
|
||||
EXPONENTIAL=157
|
||||
LOGNORMAL=158
|
||||
BERNOULLI=159
|
||||
POISSON=160
|
||||
GAMMADIST=161
|
||||
BETADIST=162
|
||||
LAPLACEDIST=163
|
||||
GUMBELDIST=164
|
||||
WEIBULLDIST=165
|
||||
CHI2DIST=166
|
||||
STUDENTTDIST=167
|
||||
PERLIN=168
|
||||
CELLULAR=169
|
||||
PLASMA=170
|
||||
PLUS=171
|
||||
MINUS=172
|
||||
MULT=173
|
||||
DIV=174
|
||||
MOD=175
|
||||
POW=176
|
||||
LSHIFT=177
|
||||
RSHIFT=178
|
||||
GE=179
|
||||
GT=180
|
||||
LE=181
|
||||
LT=182
|
||||
EQ=183
|
||||
EQUEALS=184
|
||||
NE=185
|
||||
PIPE=186
|
||||
LPAREN=187
|
||||
RPAREN=188
|
||||
COMMA=189
|
||||
SEMICOLON=190
|
||||
ARROW=191
|
||||
LBRACKET=192
|
||||
RBRACKET=193
|
||||
QUESTION=194
|
||||
COLON=195
|
||||
LBRACE=196
|
||||
RBRACE=197
|
||||
NUMBER=198
|
||||
CONSTANT=199
|
||||
STRING=200
|
||||
VARIABLE=201
|
||||
SL_COMMENT=202
|
||||
ML_COMMENT=203
|
||||
WS=204
|
||||
'sin'=1
|
||||
'cos'=2
|
||||
'tan'=3
|
||||
@@ -243,106 +248,110 @@ WS=199
|
||||
'map'=46
|
||||
'swap'=49
|
||||
'range'=52
|
||||
'topk'=53
|
||||
'botk'=54
|
||||
'pinv'=55
|
||||
'sum'=56
|
||||
'mean'=57
|
||||
'std'=58
|
||||
'var'=59
|
||||
'quantile'=62
|
||||
'dot'=63
|
||||
'moment'=64
|
||||
'any'=65
|
||||
'all'=66
|
||||
'edge'=67
|
||||
'median'=69
|
||||
'mode'=70
|
||||
'cumsum'=71
|
||||
'cumprod'=72
|
||||
'smootherstep'=78
|
||||
'remap'=80
|
||||
'flatten'=83
|
||||
'append'=84
|
||||
'get_value'=85
|
||||
'flow_apply'=86
|
||||
'motion_mask'=88
|
||||
'flow_to_image'=89
|
||||
'overlay'=90
|
||||
'pad'=91
|
||||
'cross'=92
|
||||
'matmul'=93
|
||||
'rife'=94
|
||||
'shape'=97
|
||||
'tensor'=101
|
||||
'stack_push'=102
|
||||
'stack_pop'=103
|
||||
'stack_clear'=104
|
||||
'stack_has'=105
|
||||
'stack_get'=106
|
||||
'int'=108
|
||||
'float'=109
|
||||
'upper'=110
|
||||
'lower'=111
|
||||
'trim'=112
|
||||
'split'=113
|
||||
'join'=114
|
||||
'substring'=115
|
||||
'substr'=116
|
||||
'find'=117
|
||||
'replace'=118
|
||||
'dilate'=119
|
||||
'erode'=120
|
||||
'morph_open'=121
|
||||
'morph_close'=122
|
||||
'rgb_to_hsv'=123
|
||||
'hsv_to_rgb'=124
|
||||
'int_to_rgb'=125
|
||||
'rgb_to_int'=126
|
||||
'if'=127
|
||||
'else'=128
|
||||
'while'=129
|
||||
'for'=130
|
||||
'in'=131
|
||||
'break'=132
|
||||
'continue'=133
|
||||
'return'=134
|
||||
'timestamp'=135
|
||||
'sort'=136
|
||||
'argsort'=137
|
||||
'argmin'=138
|
||||
'argmax'=139
|
||||
'softmax'=140
|
||||
'softmin'=141
|
||||
'unique'=142
|
||||
'flip'=143
|
||||
'cov'=144
|
||||
'entropy'=146
|
||||
'crop'=147
|
||||
'+'=166
|
||||
'-'=167
|
||||
'*'=168
|
||||
'/'=169
|
||||
'%'=170
|
||||
'^'=171
|
||||
'<<'=172
|
||||
'>>'=173
|
||||
'>='=174
|
||||
'>'=175
|
||||
'<='=176
|
||||
'<'=177
|
||||
'=='=178
|
||||
'='=179
|
||||
'!='=180
|
||||
'|'=181
|
||||
'('=182
|
||||
')'=183
|
||||
','=184
|
||||
';'=185
|
||||
'->'=186
|
||||
'['=187
|
||||
']'=188
|
||||
'?'=189
|
||||
':'=190
|
||||
'{'=191
|
||||
'}'=192
|
||||
'linspace'=53
|
||||
'logspace'=54
|
||||
'topk'=55
|
||||
'botk'=56
|
||||
'pinv'=57
|
||||
'sum'=58
|
||||
'mean'=59
|
||||
'std'=60
|
||||
'var'=61
|
||||
'quantile'=64
|
||||
'dot'=65
|
||||
'moment'=66
|
||||
'erf'=67
|
||||
'erfinv'=68
|
||||
'any'=69
|
||||
'all'=70
|
||||
'edge'=71
|
||||
'median'=73
|
||||
'mode'=74
|
||||
'cumsum'=75
|
||||
'cumprod'=76
|
||||
'smootherstep'=82
|
||||
'remap'=84
|
||||
'flatten'=87
|
||||
'append'=88
|
||||
'get_value'=89
|
||||
'flow_apply'=90
|
||||
'motion_mask'=92
|
||||
'flow_to_image'=93
|
||||
'overlay'=94
|
||||
'pad'=95
|
||||
'cross'=96
|
||||
'matmul'=97
|
||||
'rife'=98
|
||||
'shape'=101
|
||||
'tensor'=105
|
||||
'stack_push'=106
|
||||
'stack_pop'=107
|
||||
'stack_clear'=108
|
||||
'stack_has'=109
|
||||
'stack_get'=110
|
||||
'int'=112
|
||||
'float'=113
|
||||
'upper'=114
|
||||
'lower'=115
|
||||
'trim'=116
|
||||
'split'=117
|
||||
'join'=118
|
||||
'substring'=119
|
||||
'substr'=120
|
||||
'find'=121
|
||||
'replace'=122
|
||||
'dilate'=123
|
||||
'erode'=124
|
||||
'morph_open'=125
|
||||
'morph_close'=126
|
||||
'rgb_to_hsv'=127
|
||||
'hsv_to_rgb'=128
|
||||
'int_to_rgb'=129
|
||||
'rgb_to_int'=130
|
||||
'if'=131
|
||||
'else'=132
|
||||
'while'=133
|
||||
'for'=134
|
||||
'in'=135
|
||||
'break'=136
|
||||
'continue'=137
|
||||
'return'=138
|
||||
'sort'=140
|
||||
'argsort'=141
|
||||
'argmin'=142
|
||||
'argmax'=143
|
||||
'softmax'=144
|
||||
'softmin'=145
|
||||
'unique'=146
|
||||
'flip'=147
|
||||
'roll'=148
|
||||
'cov'=149
|
||||
'entropy'=151
|
||||
'crop'=152
|
||||
'+'=171
|
||||
'-'=172
|
||||
'*'=173
|
||||
'/'=174
|
||||
'%'=175
|
||||
'^'=176
|
||||
'<<'=177
|
||||
'>>'=178
|
||||
'>='=179
|
||||
'>'=180
|
||||
'<='=181
|
||||
'<'=182
|
||||
'=='=183
|
||||
'='=184
|
||||
'!='=185
|
||||
'|'=186
|
||||
'('=187
|
||||
')'=188
|
||||
','=189
|
||||
';'=190
|
||||
'->'=191
|
||||
'['=192
|
||||
']'=193
|
||||
'?'=194
|
||||
':'=195
|
||||
'{'=196
|
||||
'}'=197
|
||||
|
||||
File diff suppressed because one or more lines are too long
+1033
-1005
File diff suppressed because it is too large
Load Diff
@@ -50,153 +50,158 @@ SWAP=49
|
||||
PERM=50
|
||||
RESHAPE=51
|
||||
RANGE=52
|
||||
TOPK=53
|
||||
BOTK=54
|
||||
PINV=55
|
||||
SUM=56
|
||||
MEAN=57
|
||||
STD=58
|
||||
VAR=59
|
||||
QUARTILE=60
|
||||
PERCENTILE=61
|
||||
QUANTILE=62
|
||||
DOT=63
|
||||
MOMENT=64
|
||||
ANY=65
|
||||
ALL=66
|
||||
EDGE=67
|
||||
GAUSSIAN=68
|
||||
MEDIAN=69
|
||||
MODE=70
|
||||
CUMSUM=71
|
||||
CUMPROD=72
|
||||
TOPK_IND=73
|
||||
BOTK_IND=74
|
||||
CUBIC_EASE=75
|
||||
ELASTIC_EASE=76
|
||||
SINE_EASE=77
|
||||
SMOOTHERSTEP=78
|
||||
DIST=79
|
||||
REMAP=80
|
||||
COSSIM=81
|
||||
COUNT=82
|
||||
FLATTEN=83
|
||||
APPEND=84
|
||||
GET_VALUE=85
|
||||
FLOW_APPLY=86
|
||||
BATCH_SHUFFLE=87
|
||||
MOTION_MASK=88
|
||||
FLOW_TO_IMAGE=89
|
||||
OVERLAY=90
|
||||
PAD=91
|
||||
CROSS=92
|
||||
MATMUL=93
|
||||
RIFE=94
|
||||
BNOT=95
|
||||
BITCOUNT=96
|
||||
SHAPE=97
|
||||
BAND=98
|
||||
XOR=99
|
||||
BOR=100
|
||||
TENSOR=101
|
||||
PUSH=102
|
||||
POP=103
|
||||
CLEAR=104
|
||||
HAS=105
|
||||
GET=106
|
||||
CONCAT=107
|
||||
INT=108
|
||||
FLOAT=109
|
||||
UPPER=110
|
||||
LOWER=111
|
||||
TRIM=112
|
||||
SPLIT=113
|
||||
JOIN=114
|
||||
SUBSTRING=115
|
||||
SUBSTR=116
|
||||
FIND=117
|
||||
REPLACE=118
|
||||
DILATE=119
|
||||
ERODE=120
|
||||
MORPH_OPEN=121
|
||||
MORPH_CLOSE=122
|
||||
RGB_TO_HSV=123
|
||||
HSV_TO_RGB=124
|
||||
INT_TO_RGB=125
|
||||
RGB_TO_INT=126
|
||||
IF=127
|
||||
ELSE=128
|
||||
WHILE=129
|
||||
FOR=130
|
||||
IN=131
|
||||
BREAK=132
|
||||
CONTINUE=133
|
||||
RETURN=134
|
||||
TIMESTAMP=135
|
||||
SORT=136
|
||||
ARGSORT=137
|
||||
ARGMIN=138
|
||||
ARGMAX=139
|
||||
SOFTMAX=140
|
||||
SOFTMIN=141
|
||||
UNIQUE=142
|
||||
FLIP=143
|
||||
COV=144
|
||||
CORR=145
|
||||
ENTROPY=146
|
||||
CROP=147
|
||||
NONE=148
|
||||
NOISE=149
|
||||
RAND=150
|
||||
CAUCHY=151
|
||||
EXPONENTIAL=152
|
||||
LOGNORMAL=153
|
||||
BERNOULLI=154
|
||||
POISSON=155
|
||||
GAMMADIST=156
|
||||
BETADIST=157
|
||||
LAPLACEDIST=158
|
||||
GUMBELDIST=159
|
||||
WEIBULLDIST=160
|
||||
CHI2DIST=161
|
||||
STUDENTTDIST=162
|
||||
PERLIN=163
|
||||
CELLULAR=164
|
||||
PLASMA=165
|
||||
PLUS=166
|
||||
MINUS=167
|
||||
MULT=168
|
||||
DIV=169
|
||||
MOD=170
|
||||
POW=171
|
||||
LSHIFT=172
|
||||
RSHIFT=173
|
||||
GE=174
|
||||
GT=175
|
||||
LE=176
|
||||
LT=177
|
||||
EQ=178
|
||||
EQUEALS=179
|
||||
NE=180
|
||||
PIPE=181
|
||||
LPAREN=182
|
||||
RPAREN=183
|
||||
COMMA=184
|
||||
SEMICOLON=185
|
||||
ARROW=186
|
||||
LBRACKET=187
|
||||
RBRACKET=188
|
||||
QUESTION=189
|
||||
COLON=190
|
||||
LBRACE=191
|
||||
RBRACE=192
|
||||
NUMBER=193
|
||||
CONSTANT=194
|
||||
STRING=195
|
||||
VARIABLE=196
|
||||
SL_COMMENT=197
|
||||
ML_COMMENT=198
|
||||
WS=199
|
||||
LINSPACE=53
|
||||
LOGSPACE=54
|
||||
TOPK=55
|
||||
BOTK=56
|
||||
PINV=57
|
||||
SUM=58
|
||||
MEAN=59
|
||||
STD=60
|
||||
VAR=61
|
||||
QUARTILE=62
|
||||
PERCENTILE=63
|
||||
QUANTILE=64
|
||||
DOT=65
|
||||
MOMENT=66
|
||||
ERF=67
|
||||
ERFINV=68
|
||||
ANY=69
|
||||
ALL=70
|
||||
EDGE=71
|
||||
GAUSSIAN=72
|
||||
MEDIAN=73
|
||||
MODE=74
|
||||
CUMSUM=75
|
||||
CUMPROD=76
|
||||
TOPK_IND=77
|
||||
BOTK_IND=78
|
||||
CUBIC_EASE=79
|
||||
ELASTIC_EASE=80
|
||||
SINE_EASE=81
|
||||
SMOOTHERSTEP=82
|
||||
DIST=83
|
||||
REMAP=84
|
||||
COSSIM=85
|
||||
COUNT=86
|
||||
FLATTEN=87
|
||||
APPEND=88
|
||||
GET_VALUE=89
|
||||
FLOW_APPLY=90
|
||||
BATCH_SHUFFLE=91
|
||||
MOTION_MASK=92
|
||||
FLOW_TO_IMAGE=93
|
||||
OVERLAY=94
|
||||
PAD=95
|
||||
CROSS=96
|
||||
MATMUL=97
|
||||
RIFE=98
|
||||
BNOT=99
|
||||
BITCOUNT=100
|
||||
SHAPE=101
|
||||
BAND=102
|
||||
XOR=103
|
||||
BOR=104
|
||||
TENSOR=105
|
||||
PUSH=106
|
||||
POP=107
|
||||
CLEAR=108
|
||||
HAS=109
|
||||
GET=110
|
||||
CONCAT=111
|
||||
INT=112
|
||||
FLOAT=113
|
||||
UPPER=114
|
||||
LOWER=115
|
||||
TRIM=116
|
||||
SPLIT=117
|
||||
JOIN=118
|
||||
SUBSTRING=119
|
||||
SUBSTR=120
|
||||
FIND=121
|
||||
REPLACE=122
|
||||
DILATE=123
|
||||
ERODE=124
|
||||
MORPH_OPEN=125
|
||||
MORPH_CLOSE=126
|
||||
RGB_TO_HSV=127
|
||||
HSV_TO_RGB=128
|
||||
INT_TO_RGB=129
|
||||
RGB_TO_INT=130
|
||||
IF=131
|
||||
ELSE=132
|
||||
WHILE=133
|
||||
FOR=134
|
||||
IN=135
|
||||
BREAK=136
|
||||
CONTINUE=137
|
||||
RETURN=138
|
||||
TIMESTAMP=139
|
||||
SORT=140
|
||||
ARGSORT=141
|
||||
ARGMIN=142
|
||||
ARGMAX=143
|
||||
SOFTMAX=144
|
||||
SOFTMIN=145
|
||||
UNIQUE=146
|
||||
FLIP=147
|
||||
ROLL=148
|
||||
COV=149
|
||||
CORR=150
|
||||
ENTROPY=151
|
||||
CROP=152
|
||||
NONE=153
|
||||
NOISE=154
|
||||
RAND=155
|
||||
CAUCHY=156
|
||||
EXPONENTIAL=157
|
||||
LOGNORMAL=158
|
||||
BERNOULLI=159
|
||||
POISSON=160
|
||||
GAMMADIST=161
|
||||
BETADIST=162
|
||||
LAPLACEDIST=163
|
||||
GUMBELDIST=164
|
||||
WEIBULLDIST=165
|
||||
CHI2DIST=166
|
||||
STUDENTTDIST=167
|
||||
PERLIN=168
|
||||
CELLULAR=169
|
||||
PLASMA=170
|
||||
PLUS=171
|
||||
MINUS=172
|
||||
MULT=173
|
||||
DIV=174
|
||||
MOD=175
|
||||
POW=176
|
||||
LSHIFT=177
|
||||
RSHIFT=178
|
||||
GE=179
|
||||
GT=180
|
||||
LE=181
|
||||
LT=182
|
||||
EQ=183
|
||||
EQUEALS=184
|
||||
NE=185
|
||||
PIPE=186
|
||||
LPAREN=187
|
||||
RPAREN=188
|
||||
COMMA=189
|
||||
SEMICOLON=190
|
||||
ARROW=191
|
||||
LBRACKET=192
|
||||
RBRACKET=193
|
||||
QUESTION=194
|
||||
COLON=195
|
||||
LBRACE=196
|
||||
RBRACE=197
|
||||
NUMBER=198
|
||||
CONSTANT=199
|
||||
STRING=200
|
||||
VARIABLE=201
|
||||
SL_COMMENT=202
|
||||
ML_COMMENT=203
|
||||
WS=204
|
||||
'sin'=1
|
||||
'cos'=2
|
||||
'tan'=3
|
||||
@@ -243,106 +248,110 @@ WS=199
|
||||
'map'=46
|
||||
'swap'=49
|
||||
'range'=52
|
||||
'topk'=53
|
||||
'botk'=54
|
||||
'pinv'=55
|
||||
'sum'=56
|
||||
'mean'=57
|
||||
'std'=58
|
||||
'var'=59
|
||||
'quantile'=62
|
||||
'dot'=63
|
||||
'moment'=64
|
||||
'any'=65
|
||||
'all'=66
|
||||
'edge'=67
|
||||
'median'=69
|
||||
'mode'=70
|
||||
'cumsum'=71
|
||||
'cumprod'=72
|
||||
'smootherstep'=78
|
||||
'remap'=80
|
||||
'flatten'=83
|
||||
'append'=84
|
||||
'get_value'=85
|
||||
'flow_apply'=86
|
||||
'motion_mask'=88
|
||||
'flow_to_image'=89
|
||||
'overlay'=90
|
||||
'pad'=91
|
||||
'cross'=92
|
||||
'matmul'=93
|
||||
'rife'=94
|
||||
'shape'=97
|
||||
'tensor'=101
|
||||
'stack_push'=102
|
||||
'stack_pop'=103
|
||||
'stack_clear'=104
|
||||
'stack_has'=105
|
||||
'stack_get'=106
|
||||
'int'=108
|
||||
'float'=109
|
||||
'upper'=110
|
||||
'lower'=111
|
||||
'trim'=112
|
||||
'split'=113
|
||||
'join'=114
|
||||
'substring'=115
|
||||
'substr'=116
|
||||
'find'=117
|
||||
'replace'=118
|
||||
'dilate'=119
|
||||
'erode'=120
|
||||
'morph_open'=121
|
||||
'morph_close'=122
|
||||
'rgb_to_hsv'=123
|
||||
'hsv_to_rgb'=124
|
||||
'int_to_rgb'=125
|
||||
'rgb_to_int'=126
|
||||
'if'=127
|
||||
'else'=128
|
||||
'while'=129
|
||||
'for'=130
|
||||
'in'=131
|
||||
'break'=132
|
||||
'continue'=133
|
||||
'return'=134
|
||||
'timestamp'=135
|
||||
'sort'=136
|
||||
'argsort'=137
|
||||
'argmin'=138
|
||||
'argmax'=139
|
||||
'softmax'=140
|
||||
'softmin'=141
|
||||
'unique'=142
|
||||
'flip'=143
|
||||
'cov'=144
|
||||
'entropy'=146
|
||||
'crop'=147
|
||||
'+'=166
|
||||
'-'=167
|
||||
'*'=168
|
||||
'/'=169
|
||||
'%'=170
|
||||
'^'=171
|
||||
'<<'=172
|
||||
'>>'=173
|
||||
'>='=174
|
||||
'>'=175
|
||||
'<='=176
|
||||
'<'=177
|
||||
'=='=178
|
||||
'='=179
|
||||
'!='=180
|
||||
'|'=181
|
||||
'('=182
|
||||
')'=183
|
||||
','=184
|
||||
';'=185
|
||||
'->'=186
|
||||
'['=187
|
||||
']'=188
|
||||
'?'=189
|
||||
':'=190
|
||||
'{'=191
|
||||
'}'=192
|
||||
'linspace'=53
|
||||
'logspace'=54
|
||||
'topk'=55
|
||||
'botk'=56
|
||||
'pinv'=57
|
||||
'sum'=58
|
||||
'mean'=59
|
||||
'std'=60
|
||||
'var'=61
|
||||
'quantile'=64
|
||||
'dot'=65
|
||||
'moment'=66
|
||||
'erf'=67
|
||||
'erfinv'=68
|
||||
'any'=69
|
||||
'all'=70
|
||||
'edge'=71
|
||||
'median'=73
|
||||
'mode'=74
|
||||
'cumsum'=75
|
||||
'cumprod'=76
|
||||
'smootherstep'=82
|
||||
'remap'=84
|
||||
'flatten'=87
|
||||
'append'=88
|
||||
'get_value'=89
|
||||
'flow_apply'=90
|
||||
'motion_mask'=92
|
||||
'flow_to_image'=93
|
||||
'overlay'=94
|
||||
'pad'=95
|
||||
'cross'=96
|
||||
'matmul'=97
|
||||
'rife'=98
|
||||
'shape'=101
|
||||
'tensor'=105
|
||||
'stack_push'=106
|
||||
'stack_pop'=107
|
||||
'stack_clear'=108
|
||||
'stack_has'=109
|
||||
'stack_get'=110
|
||||
'int'=112
|
||||
'float'=113
|
||||
'upper'=114
|
||||
'lower'=115
|
||||
'trim'=116
|
||||
'split'=117
|
||||
'join'=118
|
||||
'substring'=119
|
||||
'substr'=120
|
||||
'find'=121
|
||||
'replace'=122
|
||||
'dilate'=123
|
||||
'erode'=124
|
||||
'morph_open'=125
|
||||
'morph_close'=126
|
||||
'rgb_to_hsv'=127
|
||||
'hsv_to_rgb'=128
|
||||
'int_to_rgb'=129
|
||||
'rgb_to_int'=130
|
||||
'if'=131
|
||||
'else'=132
|
||||
'while'=133
|
||||
'for'=134
|
||||
'in'=135
|
||||
'break'=136
|
||||
'continue'=137
|
||||
'return'=138
|
||||
'sort'=140
|
||||
'argsort'=141
|
||||
'argmin'=142
|
||||
'argmax'=143
|
||||
'softmax'=144
|
||||
'softmin'=145
|
||||
'unique'=146
|
||||
'flip'=147
|
||||
'roll'=148
|
||||
'cov'=149
|
||||
'entropy'=151
|
||||
'crop'=152
|
||||
'+'=171
|
||||
'-'=172
|
||||
'*'=173
|
||||
'/'=174
|
||||
'%'=175
|
||||
'^'=176
|
||||
'<<'=177
|
||||
'>>'=178
|
||||
'>='=179
|
||||
'>'=180
|
||||
'<='=181
|
||||
'<'=182
|
||||
'=='=183
|
||||
'='=184
|
||||
'!='=185
|
||||
'|'=186
|
||||
'('=187
|
||||
')'=188
|
||||
','=189
|
||||
';'=190
|
||||
'->'=191
|
||||
'['=192
|
||||
']'=193
|
||||
'?'=194
|
||||
':'=195
|
||||
'{'=196
|
||||
'}'=197
|
||||
|
||||
@@ -1106,6 +1106,24 @@ class MathExprListener(ParseTreeListener):
|
||||
pass
|
||||
|
||||
|
||||
# Enter a parse tree produced by MathExprParser#ErfFunc.
|
||||
def enterErfFunc(self, ctx:MathExprParser.ErfFuncContext):
|
||||
pass
|
||||
|
||||
# Exit a parse tree produced by MathExprParser#ErfFunc.
|
||||
def exitErfFunc(self, ctx:MathExprParser.ErfFuncContext):
|
||||
pass
|
||||
|
||||
|
||||
# Enter a parse tree produced by MathExprParser#ErfinvFunc.
|
||||
def enterErfinvFunc(self, ctx:MathExprParser.ErfinvFuncContext):
|
||||
pass
|
||||
|
||||
# Exit a parse tree produced by MathExprParser#ErfinvFunc.
|
||||
def exitErfinvFunc(self, ctx:MathExprParser.ErfinvFuncContext):
|
||||
pass
|
||||
|
||||
|
||||
# Enter a parse tree produced by MathExprParser#UniqueFunc.
|
||||
def enterUniqueFunc(self, ctx:MathExprParser.UniqueFuncContext):
|
||||
pass
|
||||
@@ -1412,6 +1430,15 @@ class MathExprListener(ParseTreeListener):
|
||||
pass
|
||||
|
||||
|
||||
# Enter a parse tree produced by MathExprParser#PermuteFunc.
|
||||
def enterPermuteFunc(self, ctx:MathExprParser.PermuteFuncContext):
|
||||
pass
|
||||
|
||||
# Exit a parse tree produced by MathExprParser#PermuteFunc.
|
||||
def exitPermuteFunc(self, ctx:MathExprParser.PermuteFuncContext):
|
||||
pass
|
||||
|
||||
|
||||
# Enter a parse tree produced by MathExprParser#GaussianFunc.
|
||||
def enterGaussianFunc(self, ctx:MathExprParser.GaussianFuncContext):
|
||||
pass
|
||||
@@ -1718,6 +1745,24 @@ class MathExprListener(ParseTreeListener):
|
||||
pass
|
||||
|
||||
|
||||
# Enter a parse tree produced by MathExprParser#LinspaceFunc.
|
||||
def enterLinspaceFunc(self, ctx:MathExprParser.LinspaceFuncContext):
|
||||
pass
|
||||
|
||||
# Exit a parse tree produced by MathExprParser#LinspaceFunc.
|
||||
def exitLinspaceFunc(self, ctx:MathExprParser.LinspaceFuncContext):
|
||||
pass
|
||||
|
||||
|
||||
# Enter a parse tree produced by MathExprParser#RollFunc.
|
||||
def enterRollFunc(self, ctx:MathExprParser.RollFuncContext):
|
||||
pass
|
||||
|
||||
# Exit a parse tree produced by MathExprParser#RollFunc.
|
||||
def exitRollFunc(self, ctx:MathExprParser.RollFuncContext):
|
||||
pass
|
||||
|
||||
|
||||
# Enter a parse tree produced by MathExprParser#RgbToHsvFunc.
|
||||
def enterRgbToHsvFunc(self, ctx:MathExprParser.RgbToHsvFuncContext):
|
||||
pass
|
||||
@@ -1754,6 +1799,15 @@ class MathExprListener(ParseTreeListener):
|
||||
pass
|
||||
|
||||
|
||||
# Enter a parse tree produced by MathExprParser#ĹogspaceFunc.
|
||||
def enterĹogspaceFunc(self, ctx:MathExprParser.ĹogspaceFuncContext):
|
||||
pass
|
||||
|
||||
# Exit a parse tree produced by MathExprParser#ĹogspaceFunc.
|
||||
def exitĹogspaceFunc(self, ctx:MathExprParser.ĹogspaceFuncContext):
|
||||
pass
|
||||
|
||||
|
||||
# Enter a parse tree produced by MathExprParser#DistFunc.
|
||||
def enterDistFunc(self, ctx:MathExprParser.DistFuncContext):
|
||||
pass
|
||||
@@ -1817,15 +1871,6 @@ class MathExprListener(ParseTreeListener):
|
||||
pass
|
||||
|
||||
|
||||
# Enter a parse tree produced by MathExprParser#PermuteFunc.
|
||||
def enterPermuteFunc(self, ctx:MathExprParser.PermuteFuncContext):
|
||||
pass
|
||||
|
||||
# Exit a parse tree produced by MathExprParser#PermuteFunc.
|
||||
def exitPermuteFunc(self, ctx:MathExprParser.PermuteFuncContext):
|
||||
pass
|
||||
|
||||
|
||||
# Enter a parse tree produced by MathExprParser#ReshapeFunc.
|
||||
def enterReshapeFunc(self, ctx:MathExprParser.ReshapeFuncContext):
|
||||
pass
|
||||
|
||||
+2426
-2129
File diff suppressed because it is too large
Load Diff
@@ -619,6 +619,16 @@ class MathExprVisitor(ParseTreeVisitor):
|
||||
return self.visitChildren(ctx)
|
||||
|
||||
|
||||
# Visit a parse tree produced by MathExprParser#ErfFunc.
|
||||
def visitErfFunc(self, ctx:MathExprParser.ErfFuncContext):
|
||||
return self.visitChildren(ctx)
|
||||
|
||||
|
||||
# Visit a parse tree produced by MathExprParser#ErfinvFunc.
|
||||
def visitErfinvFunc(self, ctx:MathExprParser.ErfinvFuncContext):
|
||||
return self.visitChildren(ctx)
|
||||
|
||||
|
||||
# Visit a parse tree produced by MathExprParser#UniqueFunc.
|
||||
def visitUniqueFunc(self, ctx:MathExprParser.UniqueFuncContext):
|
||||
return self.visitChildren(ctx)
|
||||
@@ -789,6 +799,11 @@ class MathExprVisitor(ParseTreeVisitor):
|
||||
return self.visitChildren(ctx)
|
||||
|
||||
|
||||
# Visit a parse tree produced by MathExprParser#PermuteFunc.
|
||||
def visitPermuteFunc(self, ctx:MathExprParser.PermuteFuncContext):
|
||||
return self.visitChildren(ctx)
|
||||
|
||||
|
||||
# Visit a parse tree produced by MathExprParser#GaussianFunc.
|
||||
def visitGaussianFunc(self, ctx:MathExprParser.GaussianFuncContext):
|
||||
return self.visitChildren(ctx)
|
||||
@@ -959,6 +974,16 @@ class MathExprVisitor(ParseTreeVisitor):
|
||||
return self.visitChildren(ctx)
|
||||
|
||||
|
||||
# Visit a parse tree produced by MathExprParser#LinspaceFunc.
|
||||
def visitLinspaceFunc(self, ctx:MathExprParser.LinspaceFuncContext):
|
||||
return self.visitChildren(ctx)
|
||||
|
||||
|
||||
# Visit a parse tree produced by MathExprParser#RollFunc.
|
||||
def visitRollFunc(self, ctx:MathExprParser.RollFuncContext):
|
||||
return self.visitChildren(ctx)
|
||||
|
||||
|
||||
# Visit a parse tree produced by MathExprParser#RgbToHsvFunc.
|
||||
def visitRgbToHsvFunc(self, ctx:MathExprParser.RgbToHsvFuncContext):
|
||||
return self.visitChildren(ctx)
|
||||
@@ -979,6 +1004,11 @@ class MathExprVisitor(ParseTreeVisitor):
|
||||
return self.visitChildren(ctx)
|
||||
|
||||
|
||||
# Visit a parse tree produced by MathExprParser#ĹogspaceFunc.
|
||||
def visitĹogspaceFunc(self, ctx:MathExprParser.ĹogspaceFuncContext):
|
||||
return self.visitChildren(ctx)
|
||||
|
||||
|
||||
# Visit a parse tree produced by MathExprParser#DistFunc.
|
||||
def visitDistFunc(self, ctx:MathExprParser.DistFuncContext):
|
||||
return self.visitChildren(ctx)
|
||||
@@ -1014,11 +1044,6 @@ class MathExprVisitor(ParseTreeVisitor):
|
||||
return self.visitChildren(ctx)
|
||||
|
||||
|
||||
# Visit a parse tree produced by MathExprParser#PermuteFunc.
|
||||
def visitPermuteFunc(self, ctx:MathExprParser.PermuteFuncContext):
|
||||
return self.visitChildren(ctx)
|
||||
|
||||
|
||||
# Visit a parse tree produced by MathExprParser#ReshapeFunc.
|
||||
def visitReshapeFunc(self, ctx:MathExprParser.ReshapeFuncContext):
|
||||
return self.visitChildren(ctx)
|
||||
|
||||
Reference in New Issue
Block a user