Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "LDT/Developer Area/Lua Comment Model"

< LDT
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
This is the model of a comment block. this is the result of parsing of a comment block.
 
This is the model of a comment block. this is the result of parsing of a comment block.
(see the module which parses it : [https://github.com/SierraWireless/org.eclipse.koneki.ldt/blob/master/libraries/modelsbuilder/src/models/ldparser.lua ldparser.lua]
+
(see the module which parses it : [http://git.eclipse.org/c/ldt/org.eclipse.ldt.git/tree/libraries/modelsbuilder/models/ldparser.lua ldparser.lua], the code is based on lua and metalua)
  
 
   commentblock
 
   commentblock

Latest revision as of 04:00, 17 July 2014

This is the model of a comment block. this is the result of parsing of a comment block. (see the module which parses it : ldparser.lua, the code is based on lua and metalua)

 commentblock
 .string shortdescription
 .string description
 .map(tagname -> list(tag)) tags
 .map(tagname -> list(tag)) unknowntags


 tag= module | type | function | return | field | param
 module
 .string tag='file'
 .string name
 type
 .string tag='type'
 .string name
 function
 .string tag='function'
 .string parent = typename or #global
 .string name
 return
 .string tag='return'
 .list(typeref) types
 .string description
 field
 .string tag='field'
 .string name
 .string parent = typename or #global
 .string description
 .typeref type
 param
 .string tag='param'
 .string name
 .string description
 .typeref type
 typeref
 .module
 .type

Back to the top