V
V
Vyacheslav Osipov2019-04-10 14:46:10
Algorithms
Vyacheslav Osipov, 2019-04-10 14:46:10

Given a file with functions to determine which of them are recursive?

Hello. I ran into the following problem: I need to write a parser that will look for recursive functions in a file. In particular, we need an algorithm to check that a function is recursive.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
ApeCoder, 2019-04-10
@ikanaide

Find or write a parser
Walk through the AST
Find those function definitions that include calls to themselves

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question