Preface
In Lipi, the syntax is intentionally designed to be familiar to speakers of Nepali language, making it easier to learn and use for those with a background in the Nepali, Hindi, or other Sanskrit based languages. It provides a straightforward set of constructs for defining variables, creating functions, and managing control flow, all while using Nepali keywords and expressions.
Prerequisites
This guide assumes you have the following basic background:
- A General Understanding of Programming Concepts: Familiarity with fundamental programming concepts such as variables, control structures, and functions will be beneficial.
- Basic Knowledge of Nepali Language: Since Lipi uses Nepali-inspired syntax, having a general understanding of Nepali grammar and expressions will help in grasping the language's unique constructs.
- Some Experience with Programming: If you are new to programming, it's advisable to explore introductory programming tutorials or resources. While Lipi is designed to be accessible, having a foundational understanding of programming principles will make learning the language smoother.
If you're new to programming or want to get a quick start, consider exploring introductory programming resources and tutorials. This will help you build a solid foundation before diving into Lipi's specific features and syntax.
Hello, World!
Here's a simple "Hello, World!" program in Lipi:
bhana("Namaste, Vishwa!");This program prints "Namaste, Vishwa!" (Hello, World!) to the console using the bhana function. Note that Lipi doesn't require a main function - you can write code directly at the top level.
Next Steps
To get started with Lipi, explore the following sections: