pashmaklang / pashmak Goto Github PK
View Code? Open in Web Editor NEWThe Pashmak Programming Language
License: GNU General Public License v3.0
The Pashmak Programming Language
License: GNU General Public License v3.0
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 ?
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)
Online interpreter link do not work !
Hi,is there a gui library for pashmak ?
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']
Hi.
add importing python modules in pashmak.
for example :
import 'module.py'
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.
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(^)
Have you any opinion about migrating to nuitka
(https://nuitka.net) compiler instead of pyinstaller?
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!
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 ?
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
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 .
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!?
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
we need use functions with parametrs
like :
say_hello_to_me 'Name';
or
say_hello_to_me('Name');
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
Is there a feature in Pashmak that used and & or in conditional expressions ?
We should write more examples in examples/
directory.
if you wrote a new example, please send PR.
Pashmak can add function for var ?
or pashmak has any function in var ?
like this :
$var = 'Hello World';
$var.split ' ';
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 )
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.
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 ?
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!
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
They are the changes:
loop
and while
functionsRuntimeError
name to the real python exception name in exception system^
in eval, now you can run my_function ^ + ' something else'
()
in function call syntax, for example println("hello world")
or my_func(1, 2)
if..elif..else
statementwe are ready for release 0.6
. just before it, we need test more and fix detected bugs.
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.
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.
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.
hi friends. have you any idea or suggestion about a package manager for pashmak libraries?
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 .
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.
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
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.
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.
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))
@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.
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
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?
How can i implement Methods for Classes !?
If this does not exist, add it to Pashmak
pashmak have any logo ?
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.
I have one question, Pashmak language have one OS standard library ?
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
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
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.
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'
New Feature
python pashmak.py arg.pashm amir
arg.pashm file :
print args[1] ;
please add use file arguments
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 ?!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.