100 likes | 228 Vues
Air Forth 1 is a programming environment designed for cellular applications that enhances ease of use and efficiency. Modeled after the Forth language, it allows developers to switch between compiled and interpreted modes while their applications are running. With an emphasis on optimizing compiled code, Air Forth utilizes Reverse Polish Notation (RPN) for mathematical operations. This guide will introduce you to basic programming structures and examples, such as conditionals, loops, and recursion, offering a simple approach to creating robust mobile applications.
E N D
Cellular Programming Air Forth 1 Ilan Kadar & Ofry Ram www.cs.bgu.ac.il/~ramo
Air Forth 1 • Called after Forth. • Programming on the cellular , making it a lot easier and simple. • Switching between compile and interpret modes, while the application is running. • Optimizing compiled code.
Programming Air Forth 1 is similar to RPN (Reverse Polish Notation) or postfix. Algebraic: x + y x - y x * y x / y Reverse Polish: x y + x y - x y * x y /
Some Examples • 4 5 > IF “bigger” . ELSE “smaller” . THEN • 6 BEGIN DUP . 1 – DUP 0 < UNTIL • 5 DO “bla” . LOOP • N 0 = IF 1 ELSE N 1 - Recurse N * THEN