Discuss Scratch

god286
Scratcher
1000+ posts

The JNETL Programming Language, Jayden's Neat Efficient Language. Coming soon!

MagicCrayon9342 wrote:

Jonathan50 wrote:

MagicCrayon9342 wrote:

a… what what what?
Sorry, my original answer was kinda curt. I edited it a bit. A parser generator (like GNU Bison) is a program that takes a specification of your language's grammar (syntax) and generates a parser using a particular algorithm. Bison is for C, but there are probably parser generators for whatever languages you're familiar with.
it looks confusing it doesn't even tell me where to start.
https://stackoverflow.com/questions/6142643/python3-parser-generator

Here are some of my followers!

I joined: 5 years, 9 months, 24 days ago (31/03/2018)
I have: 479 followers
In total, I have attained: 1,403 loves, 1,145 favourites, and 33,731 views.
Fun Fact: If my account continued to gain followers at a similar rate to right now, in 14,210 years I would reach the number of followers griffpatch has today! Try to imagine how many followers he would have then!
Thank you everyone!
Script created by god286.
Jonathan50
Scratcher
1000+ posts

The JNETL Programming Language, Jayden's Neat Efficient Language. Coming soon!

Also knowing about recursion will help greatly, (unless your programming language is meant to be like assembly,) because expressions like 3*(2*x + 5) or f(g(x)) are recursive in structure (just meaning an expression may contain one or more other expressions — so a function to evaluate one would work by calling itself.) (You could also make a so-called recursive descent parser, which is pretty easy, if you didn't want to use a parser generator.)

Last edited by Jonathan50 (Dec. 12, 2021 04:03:45)


Not yet a Knight of the Mu Calculus.
MagicCrayon9342
Scratcher
1000+ posts

The JNETL Programming Language, Jayden's Neat Efficient Language. Coming soon!

:function (/"myfunction") [
:print /"myfunction";
]

:myfunction
Functions example.

MagicCrayon9342
Scratcher
1000+ posts

The JNETL Programming Language, Jayden's Neat Efficient Language. Coming soon!

variables.jnetl
:def *a = [ */hello ]

^from &variables.jnetl :do (import *.**);

:print *a

importing example

new syntax tho

^, usually for from and if functions
&, file
*.*, specify type
*, variable

Last edited by MagicCrayon9342 (Dec. 12, 2021 04:20:08)


god286
Scratcher
1000+ posts

The JNETL Programming Language, Jayden's Neat Efficient Language. Coming soon!

I have a suggestion
:declare [ *hw === /'hello, world' ];
:delete *hw
:delete can delete variables from memory
:declare [ *foo === /'abc' ];
:declare [ *bar === /'def' ];
:print /global
global returns all defined variables

Here are some of my followers!

I joined: 5 years, 9 months, 24 days ago (31/03/2018)
I have: 479 followers
In total, I have attained: 1,403 loves, 1,145 favourites, and 33,731 views.
Fun Fact: If my account continued to gain followers at a similar rate to right now, in 14,210 years I would reach the number of followers griffpatch has today! Try to imagine how many followers he would have then!
Thank you everyone!
Script created by god286.
MagicCrayon9342
Scratcher
1000+ posts

The JNETL Programming Language, Jayden's Neat Efficient Language. Coming soon!

god286 wrote:

I have a suggestion
:declare [ *hw === /'hello, world' ];
:delete *hw
:delete can delete variables from memory
:declare [ *foo === /'abc' ];
:declare [ *bar === /'def' ];
:print /global
global returns all defined variables
/ means string
I don't think /global'd make sense
how about

%longstring string01 === [^get &ALL_LOCAL_VARS];

also i already have :def, :define

Last edited by MagicCrayon9342 (Dec. 12, 2021 04:25:54)


MagicCrayon9342
Scratcher
1000+ posts

The JNETL Programming Language, Jayden's Neat Efficient Language. Coming soon!

What other functions/ expressions, and syntax should I add to the list of things to add when i make the interpreter. Keep suggesting and thinking, I'll be back tomorrow.

MagicCrayon9342
Scratcher
1000+ posts

The JNETL Programming Language, Jayden's Neat Efficient Language. Coming soon!

bump

MagicCrayon9342
Scratcher
1000+ posts

The JNETL Programming Language, Jayden's Neat Efficient Language. Coming soon!

doesn't JNETL code just look so clean and readable…

MagicCrayon9342
Scratcher
1000+ posts

The JNETL Programming Language, Jayden's Neat Efficient Language. Coming soon!

bump, who want's to help make the intepreter

NFlex23
Scratcher
1000+ posts

The JNETL Programming Language, Jayden's Neat Efficient Language. Coming soon!

MagicCrayon9342 wrote:

(#20)

Jonathan50 wrote:

MagicCrayon9342 wrote:

a… what what what?
Sorry, my original answer was kinda curt. I edited it a bit. A parser generator (like GNU Bison) is a program that takes a specification of your language's grammar (syntax) and generates a parser using a particular algorithm. Bison is for C, but there are probably parser generators for whatever languages you're familiar with.
it looks confusing it doesn't even tell me where to start.
I used one for Talon; it actually makes it a whole lot easier.

Help improve the Advanced Topics (Really!)
Before you create a topic:
Always search for duplicates or other similar topics before making an umbrella topic, e.g., “The Mac Topic”.
  • Is it about something you are planning on making but haven't made yet? If so, please wait to post until you have created a working prototype. This is a key factor to keeping the ATs as clean as possible.
  • The ATs aren't technical support. It is perfectly valid to ask questions about things related to programming, but not issues with external websites, apps, or devices. Most sites have their own support system; try asking there!
  • Is it related to something you are making in Scratch? (This includes OSes and other Scratch projects) If so, please post in Collaboration, Show and Tell, or another similar forum.
  • Is your topic questionably “advanced”? Try browsing the other forums to see if your topic fits better in one of those.
  • Issues with Scratch itself should be put in Bugs and Glitches.
Before you post: Is what you're posting likely to start an argument or derail the thread (e.g., browsers, operating systems)? If so, please re-think your post!





MagicCrayon9342
Scratcher
1000+ posts

The JNETL Programming Language, Jayden's Neat Efficient Language. Coming soon!

NFlex23 wrote:

MagicCrayon9342 wrote:

(#20)

Jonathan50 wrote:

MagicCrayon9342 wrote:

a… what what what?
Sorry, my original answer was kinda curt. I edited it a bit. A parser generator (like GNU Bison) is a program that takes a specification of your language's grammar (syntax) and generates a parser using a particular algorithm. Bison is for C, but there are probably parser generators for whatever languages you're familiar with.
it looks confusing it doesn't even tell me where to start.
I used one for Talon; it actually makes it a whole lot easier.
I'd prefer a non-generated parser so I can make it entirely customized and to my own needs of JNETL. I don't want this to be an easy language, i want it to be stressful. That's the whole point of it!

NFlex23
Scratcher
1000+ posts

The JNETL Programming Language, Jayden's Neat Efficient Language. Coming soon!

MagicCrayon9342 wrote:

(#32)

NFlex23 wrote:

MagicCrayon9342 wrote:

(#20)

Jonathan50 wrote:

MagicCrayon9342 wrote:

a… what what what?
Sorry, my original answer was kinda curt. I edited it a bit. A parser generator (like GNU Bison) is a program that takes a specification of your language's grammar (syntax) and generates a parser using a particular algorithm. Bison is for C, but there are probably parser generators for whatever languages you're familiar with.
it looks confusing it doesn't even tell me where to start.
I used one for Talon; it actually makes it a whole lot easier.
I'd prefer a non-generated parser so I can make it entirely customized and to my own needs of JNETL. I don't want this to be an easy language, i want it to be stressful. That's the whole point of it!
I think you're missing the point. A parser allows you to make an entirely customizable language easily. And it's not generated; you still have to write the parsing grammar yourself. This is Talon's grammar: https://github.com/MystPi/talon/blob/main/talon/syntax.lark

Last edited by NFlex23 (Jan. 12, 2022 22:02:00)


Help improve the Advanced Topics (Really!)
Before you create a topic:
Always search for duplicates or other similar topics before making an umbrella topic, e.g., “The Mac Topic”.
  • Is it about something you are planning on making but haven't made yet? If so, please wait to post until you have created a working prototype. This is a key factor to keeping the ATs as clean as possible.
  • The ATs aren't technical support. It is perfectly valid to ask questions about things related to programming, but not issues with external websites, apps, or devices. Most sites have their own support system; try asking there!
  • Is it related to something you are making in Scratch? (This includes OSes and other Scratch projects) If so, please post in Collaboration, Show and Tell, or another similar forum.
  • Is your topic questionably “advanced”? Try browsing the other forums to see if your topic fits better in one of those.
  • Issues with Scratch itself should be put in Bugs and Glitches.
Before you post: Is what you're posting likely to start an argument or derail the thread (e.g., browsers, operating systems)? If so, please re-think your post!





MagicCrayon9342
Scratcher
1000+ posts

The JNETL Programming Language, Jayden's Neat Efficient Language. Coming soon!

NFlex23 wrote:

MagicCrayon9342 wrote:

(#32)

NFlex23 wrote:

MagicCrayon9342 wrote:

(#20)

Jonathan50 wrote:

MagicCrayon9342 wrote:

a… what what what?
Sorry, my original answer was kinda curt. I edited it a bit. A parser generator (like GNU Bison) is a program that takes a specification of your language's grammar (syntax) and generates a parser using a particular algorithm. Bison is for C, but there are probably parser generators for whatever languages you're familiar with.
it looks confusing it doesn't even tell me where to start.
I used one for Talon; it actually makes it a whole lot easier.
I'd prefer a non-generated parser so I can make it entirely customized and to my own needs of JNETL. I don't want this to be an easy language, i want it to be stressful. That's the whole point of it!
I think you're missing the point. A parser allows you to make an entirely customizable language easily. And it's not generated; you still have to write the parsing grammar yourself. This is Talon's grammar: https://github.com/MystPi/talon/blob/main/talon/syntax.lark
tbh JNETL's community never existed. You do Talon I might contribute and leave JNETL behind.

MagicCrayon9342
Scratcher
1000+ posts

The JNETL Programming Language, Jayden's Neat Efficient Language. Coming soon!

I need help making an interpreter.

Powered by DjangoBB