A continued fraction is an expression obtained through an iterative process of representing a number as the sum of its integer part and the reciprocal of another number, then writing this other number as the sum of its integer part and another reciprocal, and so on.
Continued fractions can be infinite,
e.g. $$ a_0+\cfrac{1}{a_1+\cfrac{1}{a_2+\cfrac{1}{a_3+\ddots}}} $$
So it seems a term of first-order language. However, every term in first-order language has finite depth, compared with continued fractions, they have depth $\omega$, used individual and function symbols infinite times, hence are not a proper terms of first-order language.
So my question: Is there an extension of first-order language that can admit this kind of expression?