pyconform.parsing¶
Parsing Module - NEW Based on PLY
This module defines the necessary elements to parse a string variable definition into the recognized elements that are used to construct an Operation Graph.
Copyright 2017-2020, University Corporation for Atmospheric Research LICENSE: See the LICENSE.rst file for details
-
class
pyconform.parsing.
FuncType
(key, args, kwds)¶ Bases:
tuple
-
args
¶ Alias for field number 1
-
key
¶ Alias for field number 0
-
kwds
¶ Alias for field number 2
-
-
class
pyconform.parsing.
OpType
(key, args)¶ Bases:
tuple
-
args
¶ Alias for field number 1
-
key
¶ Alias for field number 0
-
-
class
pyconform.parsing.
VarType
(key, ind)¶ Bases:
tuple
-
ind
¶ Alias for field number 1
-
key
¶ Alias for field number 0
-
-
pyconform.parsing.
p_array_like
(p)[source]¶ array_like : UFLOAT array_like : UINT array_like : function array_like : variable
-
pyconform.parsing.
p_expression_binary
(p)[source]¶ array_like : array_like POW array_like array_like : array_like ‘-‘ array_like array_like : array_like ‘+’ array_like array_like : array_like ‘*’ array_like array_like : array_like ‘/’ array_like array_like : array_like ‘<’ array_like array_like : array_like ‘>’ array_like array_like : array_like LEQ array_like array_like : array_like GEQ array_like array_like : array_like EQ array_like
-
pyconform.parsing.
p_expression_unary
(p)[source]¶ array_like : ‘-‘ array_like %prec NEG array_like : ‘+’ array_like %prec POS
-
pyconform.parsing.
p_function_with_arguments_and_keywords
(p)[source]¶ function : NAME ‘(‘ argument_list ‘,’ keyword_dict ‘)’
-
pyconform.parsing.
p_keyword_dict_setitem
(p)[source]¶ keyword_dict : keyword_dict ‘,’ NAME ‘=’ argument
-
pyconform.parsing.
p_slice
(p)[source]¶ slice : slice_argument ‘:’ slice_argument ‘:’ slice_argument slice : slice_argument ‘:’ slice_argument