User:Red Leader/Nasal documentation proposal: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
(Prototype new navbox/sidebar)
(Update)
 
(22 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Proposal for the documentation of the [[Nasal]] API.
Proposal for the documentation of the [[Nasal]] API.
 
__TOC__
== Documentation pages ==
{| class="wikitable"
{| class="wikitable"
|+ Nasal library {{Done}}
|+ Nasal library {{Done}}
Line 13: Line 14:
Form: <code><nowiki>[[Nasal library/<namespace>]]</nowiki></code>
Form: <code><nowiki>[[Nasal library/<namespace>]]</nowiki></code>
{| class="wikitable"
{| class="wikitable"
|+ Nasal namespaces {{progressbar|10}}
|+ Nasal namespaces {{progressbar|30}}
! Namespace !! New page !! Progress
! Namespace !! New page !! Progress
|-
|-
| <code>'''aircraft'''</code>
| <code>'''aircraft'''</code>
| {{N/a|Not started|rowspan{{=}}"4" colspan{{=}}"2"}}
| {{N/a|Not started|rowspan{{=}}"2" colspan{{=}}"2"}}
|-
|-
| <code>'''bits'''</code>
| <code>'''bits'''</code>
|-
|-
| <code>'''clipboard'''</code>
| <code>'''clipboard'''</code> || [[Nasal library/debug]] || {{progressbar|10}}
|-
|-
| <code>'''debug'''</code>
| <code>'''debug'''</code> || [[Nasal library/debug]] || {{done}}
|-
|-
| <code>'''geo'''</code> || [[Nasal library/geo]] || {{progressbar|80}}
| <code>'''geo'''</code> || [[Nasal library/geo]] || {{done}}
|-
|-
| <code>'''gui'''</code>
| <code>'''gui'''</code>
| {{N/a|Not started|rowspan{{=}}"3" colspan{{=}}"2"}}
| {{N/a|Not started|rowspan{{=}}"2" colspan{{=}}"2"}}
|-
|-
| <code>'''http'''</code>
| <code>'''http'''</code>
|-
|-
| <code>'''io'''</code>
| <code>'''io'''</code> || [[Nasal library/io]] || {{done}}
|-
|-
| <code>'''math'''</code> || [[Nasal library/math]] || {{done}}
| <code>'''math'''</code> || [[Nasal library/math]] || {{done}}
|-
|-
| <code>'''mp_broadcast'''</code>  
| <code>'''mp_broadcast'''</code>
| {{N/a|Not started|rowspan{{=}}"11" colspan{{=}}"2"}}
| {{N/a|Not started|colspan{{=}}"2"}}
|-
|-
| <code>'''os[.path]'''</code>
| <code>'''os[.path]'''</code> || [[Nasal library/os.path]] || {{done}}
|-
|-
| <code>'''positioned'''</code>
| <code>'''positioned'''</code>
| {{N/a|Not started|colspan{{=}}"2"}}
|-
|-
| <code>'''props'''</code>
| <code>'''props'''</code> || [[Nasal library/props‎‎]] || {{done}}
|-
|-
| <code>'''scenery'''</code>
| <code>'''scenery'''</code>
| {{N/a|Not started|rowspan{{=}}"7" colspan{{=}}"2"}}
|-
|-
| <code>'''screen'''</code>
| <code>'''screen'''</code>
Line 62: Line 65:
{| class="wikitable"
{| class="wikitable"
|+ Basic Nasal scripting {{Not done}}
|+ Basic Nasal scripting {{Not done}}
! Subject !! Current page(s)
! Subject !! Current page(s) !! New page
|-
|-
| Hashes ||  
| Hashes
|
* [[Howto:Start using vectors and hashes in Nasal]]  
* [[Howto:Start using vectors and hashes in Nasal]]  
* [[Object Oriented Programming with Nasal]]
* [[Object Oriented Programming with Nasal]]
Line 70: Line 74:
* [[Howto:Understand Namespaces and Methods]]
* [[Howto:Understand Namespaces and Methods]]
* [[Nasal Namespaces in-depth]]
* [[Nasal Namespaces in-depth]]
| [[Hashes in Nasal]]
|-
|-
| Namespaces ||  
| Namespaces
|
* [[Howto:Understand Namespaces and Methods]]
* [[Howto:Understand Namespaces and Methods]]
* [[Nasal Namespaces in-depth]]  
* [[Nasal Namespaces in-depth]]  
* [[Nasal Namespaces]]
* [[Nasal Namespaces]]
| [[Namespaces in Nasal]]
|-
|-
| Numbers  
| Numbers || {{N/a|Very little}} || [[Numbers in Nasal]]
| {{N/a|Very little}}  
|-
|-
| Vectors ||  
| Vectors
|
* [[Nasal Variables]]
* [[Nasal Variables]]
* [[Howto:Use vectors and foreach loops to write shorter code]]
* [[Howto:Use vectors and foreach loops to write shorter code]]
* [[Howto:Start using vectors and hashes in Nasal]]
* [[Howto:Start using vectors and hashes in Nasal]]
| [[Vectors in Nasal]]
|-
|-
| Strings || [[Nasal Hello World]]
| Strings || [[Nasal Hello World]] || [[Strings in Nasal]]
|-  
|-  
| Conditions || [[Nasal Conditionals]]
| Conditionals || [[Nasal Conditionals]] || [[Conditionals in Nasal]]
|-
| Operators || [[Nasal Operators]] || [[Operators in Nasal]]
|-
|-
| Operators || [[Nasal Operators]]
| Loops || [[Nasal Loops]] || [[Loops in Nasal]]
|-
|-
| Loops || [[Nasal Loops]]
| Functions || [[Using Nasal functions]] || [[Functions in Nasal]]
|-
|-
| Functions || [[Using Nasal functions]]
| Variables || [[Nasal Variables]] || [[Variables in Nasal]]
|}
|}


{| class="wikitable"
{| class="wikitable"
|+ Advanced Nasal scripting {{Not done}}
|+ Advanced Nasal scripting {{Not done}}
! What? !! Current page(s)
! What? !! Current page(s) !! New page
|-
|-
| Vector slicing  || [[Nasal Variables]]
| Vector slicing  || [[Nasal Variables]] || [[Vectors in Nasal]]
|-
|-
| OOP ||
| OOP
|
* [[Object Oriented Programming with Nasal]]
* [[Object Oriented Programming with Nasal]]
* [[Object oriented programming in Nasal]]
* [[Object oriented programming in Nasal]]
| [[Object orientated programming in Nasal]]
|}
|}


Line 126: Line 138:
| Layout system || [[Canvas Layout System]]
| Layout system || [[Canvas Layout System]]
|-  
|-  
| Widgets || {{N/a|None}}
| Widgets
|
* [[Canvas Widget Matrix]]
* [[Canvas GUI]]
* [[Howto:Creating a Canvas GUI Widget]]
|-
|-
| Canvas MessageBox || [[Canvas MessageBox]]
| Canvas MessageBox || [[Canvas MessageBox]]
Line 140: Line 156:
| state = collapsed
| state = collapsed


| content1 =  
| content1style = text-align: center;
* [[What is Nasal]]?
| content1 = [[Nasal success stories|Success stories]] &bull; [[Nasal FAQ|FAQ]]
* [[Nasal success stories|Success stories]]
* [[Nasal FAQ]]
* [[Nasal Snippets]]
* [[Howto:Syntax highlighting for Nasal]]


| heading2 = Tools and utilities
| heading2 = Tools and utilities
| content2style = text-align: center;
| content2style = text-align: center;
| content2 = [[Nasal Console|Console]] &bull; [[Interactive Nasal Console|REPL Console]] &bull; [[Nasal Browser|Browser]]
| content2 = [[Nasal Console|Console]] &bull; [[Interactive Nasal Console|REPL Console]] &bull; [[Nasal Browser|Browser]] &bull; [[Howto:Syntax highlighting for Nasal|Syntax highlighting]]


| heading3 = Getting started
| heading3 = Getting started
| content3 =
| content3 =
* [[Nasal for C++ programmers]]
* [[Nasal syntax overview|Syntax overview]]
* [[Creating new Nasal scripts]]
* [[Writing Nasal scripts]]
* [[Nasal Hello World]]
* [[Nasal Snippets]]
* [[Howto:Create a new Nasal module]]
* [[Developing and debugging Nasal code]]
* [[Using Nasal functions]]
 
* [[Nasal Variables]]
| heading4 = Basic Scripting
* [[Nasal Namespaces]]
| content4style = text-align: center;
* [[Howto:Understand Namespaces and Methods|Namespace and Methods]]
| content4 = [[Hashes in Nasal|Hashes]] &bull; [[Variables in Nasal|Variables]] &bull; [[Operators in Nasal|Operators]] &bull; [[Functions in Nasal|Functions]] &bull; [[Namespaces in Nasal|Namespaces]] &bull; [[Strings in Nasal|Strings]] &bull; [[Vectors in Nasal|Vectors]] &bull; [[Conditionals in Nasal|Conditionals]] &bull; [[Numbers in Nasal|Numbers]] &bull; [[Loops in Nasal|Loops]]
* [[Nasal Namespaces in-depth]]
 
* [[Nasal Conditionals]]
| heading5 = Advanced Scripting
* [[Nasal Loops]]
| content5 =
* [[Nasal Operators]]
* [[Object orientated programming in Nasal|Object orientated programming]]
* [[Howto:Use vectors and foreach loops to write shorter code]]
* [[Howto:Start using vectors and hashes in Nasal]]
* [[Nasal library]] ([[Nasal library#Core library functions|core]]/[[Nasal library#Extension functions|extension]] functions)
** [[Nasal library/math|<code>math</code> namespace]]
** [[Nasal library/geo|<code>geo</code> namespace]]
* [[Nasal String Manipulation]]
* [[Howto:Write a parser in Nasal]]
* [[Nasal File I/O]]
* [[Nasal Flightplan]]
* [[Nasal Flightplan]]
* [[Object oriented programming in Nasal|OOP Introduction]]
* [[Callbacks in Nasal]]
* [[Object Oriented Programming with Nasal]]
* [[Nasal Callbacks Explained]]
* [[Exception handling with Nasal]]
* [[Exception handling with Nasal]]
* [[Using listeners and signals with Nasal]]
* [[Using listeners and signals with Nasal]]
* [[Developing and debugging Nasal code]]
| heading4 = Advanced Tutorials
| content4 =
* [[Caching Nasal function calls]]
* [[Caching Nasal function calls]]
* [[Nasal Unit Testing Framework]] (WIP)
* [[Nasal Unit Testing Framework]] (WIP)
Line 188: Line 186:
* [[A GPX flight logger in Nasal]]
* [[A GPX flight logger in Nasal]]
* [[Multiplayer scripting in Nasal]]
* [[Multiplayer scripting in Nasal]]
| heading6 = Howtos
| content6 =
* [[Howto:Write a parser in Nasal]]
* [[Howto:Making HTTP Requests from Nasal]]
* [[Howto:Making HTTP Requests from Nasal]]
* [[Howto:Transmit properties over MP]]
* [[Howto:Transmit properties over MP]]
Line 203: Line 204:
* [[Howto:Nasal Metaprogramming]]
* [[Howto:Nasal Metaprogramming]]
* [[Nasal/JavaScript Subset]]
* [[Nasal/JavaScript Subset]]
 
| heading7 = Reference
| content7 =
* [[Nasal library]] ([[Nasal library#Core library functions|core]]/[[Nasal library#Extension functions|extension]] functions)
** [[Nasal library/geo|<code>geo</code> namespace]]
** [[Nasal library/io|<code>io</code> namespace]]
** [[Nasal library/math|<code>math</code> namespace]]
** [[Nasal library/props|<code>props</code> namespace]]
* [[Nasal String Manipulation]]
}}
}}
{{Nasal Internals}}
{{Nasal Internals}}
{{-}}
== Misc ==
* Merge [[Nasal scripting language]] and [[What is Nasal]] into [[Nasal]]
[[Category:Nasal namespace documentation]]

Latest revision as of 09:42, 26 April 2018

Proposal for the documentation of the Nasal API.

Documentation pages

Nasal library Done Done
Old page(s) New page
Nasal library

Form: [[Nasal library/<namespace>]]

Nasal namespaces 30}% completed
Namespace New page Progress
aircraft Not started
bits
clipboard Nasal library/debug 10}% completed
debug Nasal library/debug Done Done
geo Nasal library/geo Done Done
gui Not started
http
io Nasal library/io Done Done
math Nasal library/math Done Done
mp_broadcast Not started
os[.path] Nasal library/os.path Done Done
positioned Not started
props Nasal library/props‎‎ Done Done
scenery Not started
screen
std (current page: Vector)
string
thread
utf8
view
Basic Nasal scripting Not done Not done
Subject Current page(s) New page
Hashes Hashes in Nasal
Namespaces Namespaces in Nasal
Numbers Very little Numbers in Nasal
Vectors Vectors in Nasal
Strings Nasal Hello World Strings in Nasal
Conditionals Nasal Conditionals Conditionals in Nasal
Operators Nasal Operators Operators in Nasal
Loops Nasal Loops Loops in Nasal
Functions Using Nasal functions Functions in Nasal
Variables Nasal Variables Variables in Nasal
Advanced Nasal scripting Not done Not done
What? Current page(s) New page
Vector slicing Nasal Variables Vectors in Nasal
OOP Object orientated programming in Nasal
Canvas API Not done Not done
What? Current page(s)
Canvas Element Canvas Element
Canvas Image Canvas Image
Canvas Path Canvas Path
Canvas Map
Event handling Canvas Event Handling
Canvas GUI
Layout system Canvas Layout System
Widgets
Canvas MessageBox Canvas MessageBox

Navbox


Misc