Skip to content
This repository has been archived by the owner on Jun 20, 2021. It is now read-only.

Latest commit

 

History

History

examples

SIMPLE EXAMPLES

All the examples and basics for using the simple programming language. Also includes test programs and applications. This repository contains all the basics to start developing programs and application with simple. The demos are group into different folder the syntax folder contains the basic examples to get familiar with the simple syntax, keyword, expression and statements.

COMMENT STYLE

The comment style implemented in the examples are the basic syntax for commentation and documentation with the language. The syntax is intennded for the proposed simdoc which will be able to generate html and any other possible format for the comment. To avoid dirty code and clean domentation the comment are labeled with the corresponding label clearly elaborated in the comment map at the begining or ending of the file. The comment syntax is briefly summarized below.

          #1 #2
          display "hello world"

          /*	
          comment map
          -------
            #author - <name of author and links> Azeez Adewale[[twitter]@iamthecarisma]
                         [[github]@Thecarisma]
            #date   - <date> Jan 17 2018
            #syntax - <syntax which link to it doc automatically> display
            #name   - <name of file>helloworld.sim
            #path   - <path to the file in respect to heirachy>examples/helloworld.sim
            #detail - <detail of the program> hello world in simple

            #1 - entry to the program
            #2 - using the display keyword to display "hello world" to standard output
            #<number> - as much map as you have
          */
    

MIT License

Copyright (c) 2018 Simple Programming Language

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.