Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Infix to RPN

Featured Replies

I have an incomplete and buggy application to convert expresions from normal (infix) notation to reverse polish notation (RPN) needed for XML gauges. As an example, it converts:if{ ( A > B ) && ( C < D ) } ( X + 2 * Y ) toA B > C D :(becomes a b maxEDITIt also replaces '>' with '& gt ;', '<' with '& lt ;', and '&' with '& amp ;' (without the spaces) but the forum changes them back!

Gerry Howard

Great interest here, I just can't get my head to think in RPN, particularly when it gets messy and complex. In a way you are thinking about a kind of compiler :)

  • Author

I've tidied it up and will be happy to email it to 2 or 3 people for comment before deciding whether to upload it to the library.First come, first served!

Gerry Howard

As I believe the testing should be done by XML gauge programming cracks that "live" RPN to be able to correctly judge the results other than "does the gauge show up and work as expected in FS2004?" I will for the time being wait for the downloadable version. Just please let us know when that will be :)

Would any of the HP calculators work? LOLRPN'ing since 1975!Algebric gives me the shivers!W. Sieffert

Bill Sieffert

  • Author

I doubt it. Calculators go one step further and evaluate the expression numerically. Anyway the Microsoft requirements aren't strictly RPN .The way in which a value is assigned to a variable: 1 > Ai.e. assign 1 to A is still infix. The RPN equivalent should be:1 A >

Gerry Howard

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.