styler (version 1.1.1)

pd_is: Check whether a parse table corresponds to a certain expression

Description

Check whether a parse table corresponds to a certain expression

Usage

is_curly_expr(pd)

is_cond_expr(pd)

is_while_expr(pd)

is_function_call(pd)

is_function_dec(pd)

is_comment(pd)

Arguments

pd

A parse table.

Functions

  • is_curly_expr: Checks whether pd contains an expression wrapped in curly brackets.

  • is_cond_expr: Checks whether pd contains is a conditional expression.

  • is_while_expr: Checks whether pd contains is a while loop.

  • is_function_call: Checks whether pd is a function call.

  • is_function_dec: Checks whether pd is a function declaration.

  • is_comment: Checks for every token whether or not it is a comment.