Loading...
Searching...
No Matches
item Module Reference

Definition

Provides a simple class for describing operation items.

type, private :: item 

Examples

The following example demonstrates some of the main members of the item class.

type(item) :: token
token%char = 'COS'
token%type = 'F' !Function tocken

Constructors

Initializes a new instance of the item class

item(character(24) char, character(1) type)

Parameters
[in]charthe string representation of the token
[in]typethe type of the token

Examples

type(item) :: token
token = item('*', 'B')
Note
The types accepted when tokenizing the expression are: E, S, B, U and F
  • E: end token
  • S: operand token
  • B: binary operation (^, *, /, +, -)
  • U: unary operator (+, -)
  • F: function token (sin, cos, tan, log10, log, abs, exp, sqrt, real, imag, conjg, and ang) Remarks

Definition at line 49 of file Stacks.f90.


The documentation for this module was generated from the following file: