Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pugs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
code
pugs
Commits
7fb89e48
Commit
7fb89e48
authored
2 years ago
by
Stéphane Del Pino
Browse files
Options
Downloads
Patches
Plain Diff
Add short documentation for the dev_utils module
parent
cd3b4a3a
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!145
git subrepo clone git@gitlab.com:OlMon/org-themes.git packages/org-themes
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/userdoc.org
+26
-0
26 additions, 0 deletions
doc/userdoc.org
with
26 additions
and
0 deletions
doc/userdoc.org
+
26
−
0
View file @
7fb89e48
...
...
@@ -2496,6 +2496,32 @@ But a file is created (in the execution directory), with the name
#+RESULTS: cat-filename.txt
Following ~C++~, the file is closed when the variable is destroyed.
*** The ~dev_utils~ module
This module contains utilities for ~pugs~ developers.
**** ~dev_utils~ provided functions
#+NAME: get-module-info-dev-utils
#+BEGIN_SRC pugs :exports both :results output
cout << getModuleInfo("dev_utils") << "\n";
#+END_SRC
#+RESULTS: get-module-info-dev-utils
***** ~getAST: void -> string~
Gets the abstract syntax tree (AST) that will be executed into a ~string~.
***** ~getFunctionAST: function -> string~
Gets the abstract syntax tree associated to a user function into a
~string~.
***** ~saveASTDot: string -> void~
Saves the AST of the script into the file (whose name is given as
argument) using the dot format.
*** The ~math~ module
The ~math~ module is a small utility module that provides a set of
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment