Questions tagged [language-design]
For questions pertaining specifically to code that is intended to define and design programming languages.
34 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
8
votes
2
answers
981
views
A tree of polymorphic types (Crafting Interpreters Book)
I am following the book crafting interpreters by Robert Nystrom using C++. In the book we use an Expr base class to describe expressions in the language lox. ...
9
votes
4
answers
1k
views
Basic, general lexer for a programming language
I've been working on a general lexer for a programming language for a couple days now. I don't know if the code I've written is overcomplicated, if there is a better way to parse the code into tokens ...
5
votes
2
answers
279
views
Kotlin: scoped functions with try/catch support
I'm working with Kotlin for some time. Compared to Java it's more concise. Still it has some legacy inherited from Java. For example the try-catch-construct. Though it has been upgraded from a ...
3
votes
1
answer
321
views
Generating indent and dedent tokens for python-style indenting code
I found lexy, a C++ template-based parser combinator, that helps a lot to build a language parser.
The problem is that lexy can only deal with context free grammar, and python indentation is not ...
1
vote
1
answer
235
views
C# Language Lexer
Here is a Lexer for a programming language I am working on. Any feedback would be appreciated. I only started learning C# a couple of days ago, so please excuse my newbie code :)
...
5
votes
1
answer
255
views
Simple expression evaluator in Rust
What follows is an evaluator for a toy expression language. The language includes functions of a single variable (with lexical binding), along with numbers and a way to apply functions to expressions. ...
1
vote
1
answer
79
views
Operations on nested data
Problem description.
I have JSON which comes in bad shape:
...
12
votes
4
answers
3k
views
Simple C transpiler
I wrote a simple transpiler (that may be a bit of a stretch) in perl to cut down on some boiler plate code.
I'm very new to perl, this being maybe my third ever project in it. My main question would ...
13
votes
2
answers
3k
views
Fishy: An ASCII Programming Language
I've decided to write a very simply output programming language. All the user does is write ASCII values inside ASCII fish, and the interpreter pieces the values together and outputs them.
I'm mainly ...
3
votes
0
answers
121
views
Scripting language with generic classes
I am creating a dialect of ActionScript 3.0 and now have a working verifier, or "symbol solving" verifier. The language upgrades ActionScript 3.0 with few operators, light syntax facilities, numeric ...
user avatar
user95806
5
votes
0
answers
193
views
Linny: Continued Language Development
A previous question regarding Linny exists here.
After a wonderful response on my previous question regarding my developing programming language, I worked on it for a couple days, and am returning ...
8
votes
1
answer
222
views
Linny: An Interpreted Programming Language
There is a follow up question here.
I've undertaken the project of creating my own programming language, Linny. It's a very, very simple language, with only variable creation, variable changing, and ...
6
votes
0
answers
410
views
Creating a new language: FreezeFlame
Where it shines
FreezeFlame shines in readibility while still maintaining most of the C-like syntax. It also implements a few (Planning on several) operators that are still in testing for other ...
4
votes
0
answers
467
views
Lexer with a parser combinator
A follow up to my previous question which was on the token library that this lexer produces a stream of.
View the full project, the tokens library, the parser combinator library, or this lexer ...
6
votes
2
answers
1k
views
Complex parser in C#
Last time I asked for a review of my tokenizer, and I would like to thank for all of the feedback! This time I wrote a parser for my language. The parser generates an AST (abstract syntax tree), from ...