Skip to main content

PADLang is yet another interpreted language now with focus on Pascal/C-like syntax

Project description

Yet another language written in Python.

Contains

  • Basic parser for converting tokens into AST (Abstract syntax tree).

  • Interpreter. Handles the flow of instructions in AST.

  • Contains basic types: Integer, Real, String.

  • Class support, inheritance.

  • List and dictionary support.

  • Scope module imports, global program imports.

  • Class member call support, which supports local and Python object members. (ie. you can call append on your list, but also call member of class declared locally.)

  • Scoping, ie. scope can have its own local variables and still access those declared in outer scope.

  • Methods with their own scope. They clone program’s main scope rules, therefore they support nested methods.

  • Conditional statements

  • Case switch

  • Basic variable existence checks when using variables.

  • Variable references (ex. you can pass variable reference to a procedure, which can then modify it.)

How to use

  • Either clone the repo or pip install padlang, see samples for an example of how to use the package.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

padlang-1.0.21.zip (31.7 kB view details)

Uploaded Source

File details

Details for the file padlang-1.0.21.zip.

File metadata

  • Download URL: padlang-1.0.21.zip
  • Upload date:
  • Size: 31.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for padlang-1.0.21.zip
Algorithm Hash digest
SHA256 df177bf41764a21610d812fbe7315bb97375a1547923cf3686c815e69a9cc22f
MD5 de16f291027beead5de0d4652b8bee32
BLAKE2b-256 10481ded3b01ced776406b59c5ac704108c85db45731450761129ce0d8c16ab0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page