subroutineparse_notrecursiveprivate
recursive subroutine parse_not(c, s, id)
An operand of not.
Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
| c | type(fypp_t) | inout | the state | |
| s | type(scan_t) | inout | the expression | |
| id | integer | out | the result |
Calls
Source
Show the code
recursive subroutine parse_not(c, s, id)
type(fypp_t), intent(inout) :: c !! the state
type(scan_t), intent(inout) :: s !! the expression
integer, intent(out) :: id !! the result
integer :: operand
if (at_word(s, 'not')) then
call next_token(c, s)
call parse_not(c, s, operand)
id = new_expr(c, E_NOT, operand)
else
call parse_compare(c, s, id)
end if
end subroutine parse_not