Howto:Developing a DSL interpreter in Nasal
Jump to navigation
Jump to search
This has been nominated for deletion since 16 November 2024. To discuss it, please visit the talk page.
Do not remove this tag until the discussion is closed. Reason for the nomination: This is a work-in-progress article created several years ago that was never written. |
The FlightGear forum has a subforum related to: Nasal Scripting |
Nasal scripting |
---|
Nasal internals |
---|
Memory Management (GC) |
Objective
Document how to develop a Domain Specific Language in Nasal, i.e. for creating scripted pilots, scripted ATC controllers [1][2] or scripted weather patterns.
- "[Callsign]: MAINTAIN PRESENT SPEED."
- "[Callsign]: DO NOT EXCEED 250 KNOTS"
- "[Callsign]: turn left heading 185"
- "[Callsign]: Climb and maintain 5000"
- "[Callsign]: hold north-west of the SFO VOR on the 330 degrees radial, left turns, maintain 8000 feet"
Todo
- tokens
- lexing
- parsing
- code generation
- code execution