Giter VIP home page Giter VIP logo

pashmak's People

Contributors

adabadadudu avatar amirghazi87 avatar mehanalavimajd avatar mortezanaeimabadi avatar mskf1383 avatar parsampsh avatar powerexploit avatar sami2020pro avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pashmak's Issues

replace `end*` with `end` for closing blocks

I am learning lua in Lua upside down pashmak for end the function loop and others you use of end but in pashmak you must use of endclass endfunc and others
THIS MEAN MORE KEYWORD AND LANGUAGE IS HARDER

now we can do it ?

Paradigm and type system of Pashmak programming language

I want to know more about Pashmak programming language and I want to write a lot of libraries for this language.
But first i wanna know what the paradigms and type systems of this language are ?
(this language is very simple and I write a simple ASCII and ANSI Terminal Color for Pashmak and I can contribute and write good libraries)

create inheritance system for structs

we need to create inheritance system for structs. structs will have all of their parent's properties:

struct Father
    $prop_x = 100
endstruct

struct Child < Father
endstruct

$a = ^ new Child

println $a->['prop_x']

use python modules

Hi.
add importing python modules in pashmak.
for example :
import 'module.py'

BUGs and Functions

In new commit and version 6, WE HAVE MANY FUNCTION BUG, please fix all !
I stopped all my work for Pashmak because of these bugs.

Random moudle

Hi
I complete random module but choice functions have bug and do not work , @parsampsh can you help ?
the source code of this function :

func choice($args)
    python("self.mem = random.choice(self.get_var('args')[0]")
endfunc

the test code :

import @random
$a = ["Hello" , "Hello2" , "Hello3" , "Hello4"]
random.choice($a)
print(^)

and error :

SyntaxError: unexpected EOF while parsing (<string>, line 1):
        in test.pashm:3: random.choice ($a)
        in @random:21: python ("self.mem = random.choice(self.get_var('args')[0]")
        in @stdlib:62: rmem exec(^)

snake_case or camelCase in pashmak

Style Guide is important section in programming and we need to use that.
My question is when is Style Guide written and Pashmak wants to continue as snake_case or camelCase?
I suggest snake_case because Python, Rust, etc... use snake_case and it's beautiful and amazing!

Pashmak is object-oriented

I saw that classes were added to Pashmak, so I was asked if Pashmak wanted to be object-oriented ?
If it is object-oriented, it wants to be prototype-based or class-based ?
If Pashmak is object-oriented, why don't I see it and it is not like object-oriented languages at all, and why did you add Harrow class ?

rename open to fopen or other

Hello
now we for open a file use open command ( operator )
but open can have other means . please rename it to fopen or other names.
It is too simple , but important,
thanks

Bug in classes

I Testing a code to find bug from pashmak and I can .
I run this code :

class T
    func E
        class S
            $somevar = " Testing "
        endclass
        $T = S()
        println($T=>$somevar)
    endfunc
endclass
$K = T()
$K=>E()

and i get this error :

NameError: name 'S' is not defined:
	in /tmp/temp-script-1609183110899348940.pashm:6: $T = S()

I using the online interpreter .

Writing libraries in pure Python

There are a series of libraries that should be written entirely in Python and it is not possible to write in Pashmak like Ruby and Python themselves, a series of libraries of which are written in C.
This may or may not be provided!?

Import one func or all

I read the fully documentation and i have many ideas
I do not find this in python to pashmak :

from sys import argv
# or
from sys import *

what is this in pashmak
I know we can use python code but i think if you handle it , it is better

Function parameters

we need use functions with parametrs
like :

say_hello_to_me 'Name';

or

say_hello_to_me('Name');

transcompiler

I read a Discussion named Compiler But We Don't Know Anything In The Assembly & Binary Files Or Executable Files . Yes ?

but each one of we know at least two programming language and we can create a source-to-source
compiler like java script Babel .

See following code to Pashmak that translated to Lua , C , Python , C++ , Java & etc

println 'Hello , World'
C:
#include <stdio.h>
void main(){
printf("Hello , World")
}
C++:
#include
int main(){
std::cout << "Hello , World!";
}
Lua:
io.write("Hello , World!")
Python:
print ("Hello , World")
Java:
public class FileName {
public static void main(String arguments[]){
System.out.println("Hello , World");
}
}

PLEASE READ THIS COMMENT FULL
I AM SORRY FOR HIGH LENGTH
but we don't can use of a language like Java because this don't have goto and bock
but we can use of Java if we replace goto labels with another thing

Adding more examples

We should write more examples in examples/ directory.
if you wrote a new example, please send PR.

Function is variable

Pashmak can add function for var ?
or pashmak has any function in var ?
like this :

$var = 'Hello World';
$var.split ' ';

json usage

I read the pashmak full documentation . but i do not find usage json .
pashmak have a json library ? ( if not please write one , you can use json python library )

Adding pashmak test to github actions

We can feel the we need to have a test (CI)for our pashmak projects.
There are a lot of tests like (node.js test , php test and ...) so we need a CI for pashmak in github.
You can create the test and send a PR to actions/ci.

Error in new feature (structures)

I write this code

struct Person
  $name
  $age
endstruct

$person_one = ^ new Person
$person_one->['name'] = 'Sami'
$person_one->['age'] = 14

println $person_one

But i get this output

SyntaxError: undefined operation "struct":
        in structs.pashm:1: struct Person

Why ?

Ready to release 0.6

Now, all of needed features are added, lot of optimizations done, and lot of bugs are fixed. We are ready to release 0.6. Now we are on pre release 0.6-rc4. We should more test, and fix detected bugs, then release 0.6. please test this and if there is any bug, tell me to fix it.

Thnaks!

New feature for Pashmak programming language (structs)

Pashmak is a language that can progress but it must be stronger. (Global use and other)
I think we need structures in Pashmak language.
This good feature for start and we can use structures for many projects.

for example (syntax):

struct Person: first_name last_name age 

$name = Person
$name.first_name = 'Sami'
$name.last_name = 'Ghasemi'
$name.age = 14

(or we can use other syntax)

type struct Person: first_name last_name age 

$name = Person 
$name.first_name = 'Sami'
$name.last_name = 'Ghasemi'
$name.age = 14

ready to release 0.6

They are the changes:

  • removed loop and while functions
  • created Class system
  • change default RuntimeError name to the real python exception name in exception system
  • created consts system
  • some optimizations in mem eval parser
  • added a feature to use mem symbol ^ in eval, now you can run my_function ^ + ' something else'
  • added syntax feature to put () in function call syntax, for example println("hello world") or my_func(1, 2)
  • some optimizations in interpreter code
  • added if..elif..else statement

we are ready for release 0.6. just before it, we need test more and fix detected bugs.

Cannot run this programming language in exe application

I am using windows 10 .
I use the introductions that you have put it in the README.md.
I clone the project and did all of the things that you have said.
After that I had .exe file in dist directory but it was very heavy about 8 mg !!!!
It was only a hello world application.
When I open the .exe file it will open a black window
And after that it write something in the window and then It will be closed .
Please solve this problem very soon.

Web Framework

Hi.
You can create a web framework for back-end development with pashmak, you can customize Django or Flask and put it in Pashmak programming language.

Celebrate

I wanted to write a syntax highlighter for VSCode (TypeScript) but I said let me start with something simpler and the worm started writing a syntax highlighter for the GNU nano editor! (Not completed)

You can visit it here.

Suit IDE

Hi there, pashmak is good in some cases and now is stable enough to make an IDE or at least a plugin for VS code .
Anyway , i am trying to make a primary IDE for pashmak Development :)
Good luck .

Add pashmak to GitHub

Pashmak code is increasing. We have to introduce Pashmak language to GitHub and write syntax highlighter.
Introduce Pashmak language to GitHub is simple and we can do it.

ns instead of namespace

namespace is used in c and some other old programming language.namespace name is very long and endnamespace is longer we can make ns and endns instead os namespace and endnamespce

Low speed

Python is slow , and so the programming language that is created with it is very slow ๐ŸŒ . So if we could switch to c/c++ or go or anything fast , it would be better.

Compiled Language

Hi ,you can convert pashmak from a interpreted language to a compiled language ,isn't this better?pashmak is very slow but you can write a llvm front end for pashmak and write pashmak in pashmak.

python namespace or pycode

now we can use python code in pashmak without adding any namespace
my idea is we can not use python code default and use pycode function or using a namespace
like this :

str(2)

is better :

import @pycode
str(2)

or :

pycode(str(2))

Integration : DeepSource

@parsampsh I would like to share the steps to activate the DeepSource analysis on the repo. Activating analysis will help you to continuously analyze repo for code quality issues and fix commonly occurring issues using the auto-fix feature.

  • Using DeepSource to continuously analyze your repository:
  • Install DeepSource on your repository here.
  • create .deepsource.toml configuration which you can use to configure your analysis settings.
  • Activate analysis here.

Adding Generic To Pashmak

we can add the generic to the pashmak

class Person
func HiGeneric()

    endfunc

endclass

but I don't know about generic & I don't know how to add it

how to make changes in modules in windows?

I'm using windows 10.I have made a change in modules directory (added os.mkdir function) and I want to know how does it works.
You have wrote in CONTRIBUTING.md that you have to use make module see how does your change will work but I can't use this command (I mean make module) so how can I make changes in modules in windows?

Logo

pashmak have any logo ?

Use uint in Pashmak

How can i use uint in Pashmak programming language ?
I used to write a simple library for the terminal and now I want to write something else and I need to use uints naturally to use uints in pashmak.

OS std library

I have one question, Pashmak language have one OS standard library ?

Problem in running

I use this code to run pashmak

python src/pashmak.py test.pashm

But I have this error :

RuntimeError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape (<string>, line 1):
        in <system>:2: $__file__ = "C:\Users\Amirmohammad Ghazi\Desktop\pashmak-0.5.2\test.pashm"

test.pashm is this :

mem 'something to print\n'; # first operation
out ^; # second operation

Windows : 10
Build : 2009
Terminal : windows default cmd
Pashmak version : 0.5.2
Python Version : 3.8.5

Package manager

I know that Pashmak has standard modules like sys , random and os but I think we have to make a module manager so developers can download the pashmak modules that are not standard. We can name pmm because it means Pashmak Module Manager

stable syntax and language support

I created a language support project for Visual Studio Code with yo and use TypeScript language.
I need s stable syntax, Please work on the stable syntax procedure. If it still works and receives an update, I will update it for the extension and it is not a problem, Just a notice.

Control flow in Pashmak programming language

Does Pashmak support conditional expressions ?
If answer is NO, We need to write a simple conditional expressions like that (or Pashmak have hard to write control flow)

if $num == 1
    print 'num equal 1'
else 
    print 'num not equal 1'

File Argumant

New Feature

python pashmak.py arg.pashm amir

arg.pashm file :

print args[1] ;

please add use file arguments

Function argument limit

I was not there for a while and I was not in the process of development and I have to apologize.
In connection with the logo, I am also doing standard libraries.

I found a problem and my question is why it is not possible to give a few variables to a function in Pashmak if you can please fix this bug ?!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.