4,052 questions
Score of -2
0 answers
136 views
Will languages keep getting simpler, and why?
I'm currently developing a compiled language for educational purposes. While defining the CFG (Context-Free Grammar) for struct definitions, I ran into an existential crisis simply by thinking about ...
Score of 0
2 answers
111 views
Can we use left-to-right assignment instead of regular one?
What if syntax of assignment operator would be left-to-right: a + b -> a? Would it be easier to write and comprehend it because it follows direction of regular handwriting? For example use of it in ...
Score of 0
2 answers
104 views
What language or imports should I use instead of turtle for more precise drawing?
I have a python script that draws a spiral toward the middle of the screen, using user picked shapes and settings. - the UI uses Tkinter, not turtle, but for the actual drawings after the settings are ...
Score of 0
2 answers
89 views
Associativity and precedence for expressions question
Concepts of Programming Languages 11th Edition Chapter 7
Precedence (highest to lowest):
*, /, not
+, -, &, mod
-(unary)
=, /=, <, <=, >, >=
and
or, xor
Associativity Left to right
c....
Score of -1
5 answers
379 views
How do I stop rewriting my incomplete projects in different languages?
I am building a meal planner for my partner. I wrote it initially in Rust and almost got it working, but then I decided to rewrite it in PHP. I made more progress then rewrote it in Java using Swing. ...
Score of 0
2 answers
50 views
Base language for programming language experimentation
I occasionally have programming-language ideas that I'd like to play around with, like "what if there were a lighweight monadic call syntax" or "what if my program could save its state ...
Score of 0
0 answers
60 views
What Criteria Make a Programming Language Suitable for GUI Development?
I am currently working on developing an interactive graphical user interface (GUI) for a work project, and I am exploring my options for programming languages. I am considering languages such as ...
Score of 1
1 answer
82 views
Making custom language with Pest crate in rust, rule is not working
So I made this PEG parser for parsing my custom language:
// 1. Root Rule
program = { SOI ~ stmt* ~ EOI }
// 2. Statements
// Use a positive lookahead (&) to check if an '=' exists later in the ...
Score of 0
0 answers
61 views
How to build a gcc_tree_node from custom language Nodes
Nodes:
building a gcc_tree_node for a custom prograimming language
compile and base on C++26
the modules are avilable
the language using tab-block system
every keyword start with '/'
I want to ...
Score of 0
2 answers
188 views
I'm writing a parser in C++ for my programming language, but I don't figure out how to represent token trees [closed]
I want to create a parser in C++ for my programming language. Its logic is a little different than usual, because I want to first organize tokens in blocks (such as expressions or IDs, that are ...
Score of 2
1 answer
43 views
How do I add a table to a Nytril Document?
I have the Nytril IDE installed and need to add a pie table to my document. I have looked through the tutorial but I am having trouble getting the table to appear.
I tried this, but it doesn't work.
...
Score of 3
2 answers
225 views
Is there a way in *any* JVM language to implement two interfaces with some method(s) with the same signature but different return types
So, I need to have an object implement two interfaces that both require a method with the same signature as each other, but different return types. Something like these two:
interface FooPrinter {
...
Score of 0
1 answer
237 views
Does C11, C99 or C23 have a PEG specification?
Is there a PEG parser for C language?
Is there any list of programming languages with a PEG specification?
Score of -3
1 answer
120 views
How to make minimal CRT (C Runtime) in the elf x86_64 file
I want make CRT (C, C++, Rust use CRT). For what? For my own compiler, i means which minimal suite of functions need for preparing main(argc, argv, envp, auxp, program_name, stack).
How did I know ...
Score of 1
1 answer
129 views
Dart multiple generic type evaluation
I saw an article about the Result pattern on the official flutter site(https://docs.flutter.dev/app-architecture/design-patterns/result), and I thought it was a good structure, so I tried to apply it ...