Skip to content

Making a PDL File

Cooper edited this page May 2, 2023 · 3 revisions

This wiki page is dedicated to walking every user through creating their first library as a .pdl file then parse it with the python package pdlparse.

Creating a Library

  1. First create a new file (any type) then right-click and rename it to lib.pdl.
  2. Now open this file in VSCode or notepad by typing notepad lib.pdl.
  3. Now you can use this file for storing data and variables as different types (example below).

Note: To get a feel for the syntax I recommend downloading the pdl-highlighting extension.

Example

All functions can be found on the PDL-Framework wiki page.

class data {
  str dog = 'Camille'
  int number = 10
  flt tinynum = 0.00312
};
Clone this wiki locally