Skip to main content
FlatAssembler's user avatar
FlatAssembler's user avatar
FlatAssembler's user avatar
FlatAssembler
  • Member for 1 year, 7 months
  • Last seen this week
22 votes
8 answers
8k views

Why do most languages use the same token for `EndIf`, `EndWhile`, `EndFunction` and `EndStructure`?

12 votes
2 answers
567 views

What are some caveats to be careful about when implementing the `?:` (ternary conditional) operator?

11 votes
4 answers
5k views

How do you correctly compile the chained comparison operators like ones that exist in Python (`a < b < c`), if `b` might have side-effects?

8 votes
1 answer
2k views

Why is the "scan backwards" method of parsing right-associative operators considered to be anti-pattern? What alternatives are recommended?

7 votes
4 answers
693 views

Can something like a Donkey Sentence exist in a programming language?

5 votes
1 answer
487 views

How exactly does requiring a semicolon after `EndIf` and `EndWhile` make recovering from parsing errors easier?

5 votes
1 answer
338 views

Is PicoBlaze assembly language a context-sensitive language?

5 votes
1 answer
233 views

How do I explain to ClangFormat that `:=` is an assignment operator in my programming language, rather than label+assignment?

5 votes
3 answers
665 views

What are some different approaches for inline assembly, and what are their pros and cons?

5 votes
1 answer
302 views

How is Rosetta 2 capable of translating x87 instructions (which are stack-based) to ARM machine code (where the FPU is register-based)?

4 votes
2 answers
446 views

Can two infix operators have the same priority, but different associativity? If so, how would it be implemented in the parser?

4 votes
0 answers
83 views

What would be the steps to implementing a formatter for your programming language? [duplicate]

3 votes
1 answer
154 views

How do I explain to a syntax highlighter to highlight `a` differently in `load s0, a` (where it is a hexadecimal constant) and `regbank a`? [duplicate]

2 votes
2 answers
368 views

How does the tokenizer in the C-like languages (having both labels and ternary conditional operator) know whether `:` belongs to a label or the `?:`?

2 votes
1 answer
357 views

How is the VHDL operator `<=`, which can be both right-associative (signal assignment) and left-associative (less-than-or-equal), parsed?

2 votes
0 answers
140 views

What are some options to test ARM assembly that some compiler outputs under Windows? QEMU is not an option, right?

1 vote
0 answers
104 views

How do the assemblers for processors which have "near jump" and "far jump" instructions of different length calculate the addresses of the labels? [duplicate]

1 vote
2 answers
1k views

Does x86 assembly support linguistic recursion? [closed]

-1 votes
0 answers
118 views

Does WebAssembly have any instructions which don't have analogues in LLVM IR? [duplicate]

-2 votes
1 answer
212 views

How to provide a sensible error message for `load (load s0, s1), s2` when parsing assembly? [closed]