Questions tagged [specification]
The specification tag has no summary.
6 questions
-2
votes
2
answers
272
views
If this is the actual behavior of c preprocessor, then how should I interpret the standard if I were to implement it?
In the C standard, there's this:
A parameter in the replacement list, ..., is replaced by the corresponding argument after all macros contained therein have been expanded.
It's in Section 6.10.x.x, ...
23
votes
3
answers
4k
views
What is the difference between specification and a reference for programming languages?
Recently a team of Rust developers have started working on the Rust specification. This RFC 3355 introduced the proposal. My question is that basically what's the difference between a spec and a ...
3
votes
1
answer
664
views
Why is the ECMAScript specification formatted the way it is? [closed]
The ECMAScript specification and its drafts are very accessible, but they're formatted a bit oddly -- case in point, the current version of the ToBigInt abstract operation uses three fonts:
The base (...
4
votes
2
answers
465
views
In a grammar specification, how to exclude characters?
I want to specify in my grammar that an identifier could be any character except for a list of characters (that is have a deny list instead of the most common allow list).
I've seen the common ...
10
votes
4
answers
306
views
How do I write a spec for an existing language?
I have a working interpreter for my language Trilangle, and I have a decent but informal grasp of the language's semantics. Though I've alluded to undefined behavior and a difference between what the ...
4
votes
6
answers
482
views
How would I describe an expression separately from a statement?
I have thought about how I could specify an expression separate from a statement.
A fragment of code that resolves to a value.
But void expressions are still ...