Advertisement
paul_nicholls

Untitled

Jul 18th, 2019
404
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Delphi 0.47 KB | None | 0 0
  1. procedure TParser6502.visit(aNode : TAST);
  2. begin
  3.   if (aNode is TUnaryOp) then
  4.     visitUnaryOp(TUnaryOp(aNode))
  5.   else if (aNode is TBinOp) then
  6.     visitBinOp(TBinOp(aNode))
  7.   else if (aNode is TNumber) then
  8.     visitNumber(TNumber(aNode))
  9.   else if (aNode is TVariable) then
  10.     visitVariable(TVariable(aNode))
  11.   else if (aNode is TAssign) then
  12.     visitAssign(TAssign(aNode))
  13.   else
  14.     raise Exception.Create('Visit: Unknown AST Node "'+aNode.ClassName+'"');
  15. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement