fdoc

subroutineparse_orrecursiveprivate

recursive subroutine parse_or(c, s, id)

Operands of or.

Arguments

NameTypeIntentAttributesDescription
ctype(fypp_t)inout

the state

stype(scan_t)inout

the expression

idintegerout

the result

Calls

Source

Show the code
recursive subroutine parse_or(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 :: right

    call parse_and(c, s, id)
    do while (at_word(s, 'or'))
        call next_token(c, s)
        call parse_and(c, s, right)
        id = new_expr(c, E_OR, id, right)
    end do
end subroutine parse_or

Graphs

Calls

Called by