module documentation
Fortran/C symbolic expressions
References: - J3/21-007: Draft Fortran 202x. https://j3-fortran.org/doc/year/21/21-007.pdf
Class |
|
Used in Op.APPLY expression to specify the function part. |
Class |
|
Represents a Fortran expression as a op-data pair. |
Class |
|
Used as Expr.tostring language argument. |
Class |
|
Used as Expr op attribute. |
Class |
|
Used as Expr.tostring precedence argument. |
Class |
|
Used in Op.RELATIONAL expression to specify the function part. |
Exception |
|
Undocumented |
Exception |
|
Undocumented |
Function | as |
Return object as APPLY expression (function call, constructor, etc.) |
Function | as |
Return object as ARRAY expression (array constant). |
Function | as |
Return object as COMPLEX expression (complex literal constant). |
Function | as |
Return object as dereferencing expression. |
Function | as |
Undocumented |
Function | as |
Convert non-Expr objects to Expr objects. |
Function | as |
Return expression as FACTORS expression. |
Function | as |
Undocumented |
Function | as |
Undocumented |
Function | as |
Return object as INTEGER constant. |
Function | as |
Undocumented |
Function | as |
Undocumented |
Function | as |
Undocumented |
Function | as |
Return object as INTEGER or REAL constant. |
Function | as |
Return expression as numer-denom pair. |
Function | as |
Return object as REAL constant. |
Function | as |
Return object as referencing expression. |
Function | as |
Return object as STRING expression (string literal constant). |
Function | as |
Return object as SYMBOL expression (variable or unparsed expression). |
Function | as |
Return expression as term-coefficient pair. |
Function | as |
Return expression as TERMS expression. |
Function | as |
Return object as TERNARY expression (cond?expr1:expr2). |
Function | eliminate |
Replace quoted substrings of input string. |
Function | ewarn |
Undocumented |
Function | fromstring |
Create an expression from a string. |
Function | insert |
Inverse of eliminate_quotes. |
Function | normalize |
Normalize Expr and apply basic evaluation methods. |
Function | replace |
Replace substrings of input that are enclosed in parenthesis. |
Function | unreplace |
Inverse of replace_parenthesis. |
Constant | COUNTER |
Undocumented |
Variable | integer |
Undocumented |
Variable | number |
Undocumented |
Class | _ |
No class docstring; 0/3 instance variable, 1/4 method documented |
Class | _ |
Undocumented |
Function | _counter |
Undocumented |
Function | _get |
Undocumented |
Function | _pairs |
Undocumented |
Create an expression from a string.
This is a "lazy" parser, that is, only arithmetic operations are resolved, non-arithmetic operations are treated as symbols.