Skip to main content
0 votes
0 answers
39 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 ...
Adam Bekoudj's user avatar
0 votes
2 answers
161 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 ...
varevind's user avatar
2 votes
1 answer
22 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. ...
John Colbert's user avatar
3 votes
2 answers
200 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 { ...
Choosechee's user avatar
0 votes
1 answer
95 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?
Vasileios Anagnostopoulos's user avatar
-2 votes
1 answer
77 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 ...
Tayler's user avatar
  • 15
1 vote
1 answer
98 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 ...
asci's user avatar
  • 11
-1 votes
1 answer
143 views

Does ruby create a temporary variable when you type a number literal?

I am working on my own language and wondering how other language do things. When I am using irb for example and just type a number like "5" I get: irb(main):001:0> 5 => 5 irb(main):003:...
Eric Seifert's user avatar
  • 2,032
0 votes
1 answer
59 views

Python library pydub, exit code -1073741819

I am making a program where I need to play files many times. When I play a file, it plays, but after 2 seconds the program closes with exit code -1073741819. Code: " from pydub import ...
CSER228's user avatar
0 votes
0 answers
25 views

What is the meaning of `=>` in Lustre?

In Lustre v6 syntax rules, there is a => expression Expression ::= ... | Expression => Expression ... It seems that => accepts 2 boolean operands and also returns ...
Mahler's user avatar
  • 466
1 vote
1 answer
48 views

Segmentation fault encountered at `ret void` in llvm-ir instructions

I'm currently making a compiler that outputs bare LLVM-IR instructions and implementing variadic function calls. I have defined a println function that accepts a (format) string and variable amount of ...
johron's user avatar
  • 13
0 votes
1 answer
123 views

Problem with custom LLVM-IR for my compiler

I'm currently working on programming language compiler that generated LLVM-IR. I'm not using any library for the emitting, so I'm just writing instructions to a file. The problem is mutable variables, ...
johron's user avatar
  • 13
0 votes
1 answer
66 views

If everything is an object in Python, how is the value of a primary type stored?

In Python, everything is an object. I'm fine with this. If I inspect a list or even a float, I can see there is a class associated with that data. But at the end of the day, if I make an value x = 1, ...
Will Leeson's user avatar
0 votes
1 answer
91 views

I'm writing a programming language in Python, but I have a problem with the lexer function

I'm writing a programming language in Python, but I have a problem with the lexer function. I'll leave you the code, which is fully functional: import sys inputError = """ (!) Error. (...
Alessio Spinellino's user avatar
-2 votes
2 answers
1k views

Are there any Pine script alternatives now? [closed]

I've been using Pine Script on TradingView to develop custom trading indicators, but I'm looking to explore other options. I'm particularly interested in languages and platforms that might offer more ...
Eugenio's user avatar

15 30 50 per page
1
2 3 4 5
271