ScanfNode constructor

ScanfNode(
  1. StringLiteral literal,
  2. List<IdentifierNode> children
)

Constructs a scanf statement with format string and target variables.

Parameters:

  • literal: The format string literal containing scanf format specifiers
  • children: List of identifier nodes representing variables to read into

Implementation

ScanfNode(StringLiteral literal, List<IdentifierNode> children) : super(null, [literal, ...children]);