Skip to main content

Questions tagged [language-design]

For questions pertaining specifically to code that is intended to define and design programming languages.

8 votes
2 answers
998 views

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. ...
Featherball's user avatar
9 votes
4 answers
1k views

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 ...
Xandaaah's user avatar
  • 113
5 votes
2 answers
297 views

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 ...
LuCio's user avatar
  • 183
3 votes
1 answer
337 views

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 ...
jokoon's user avatar
  • 293
2 votes
1 answer
247 views

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 :) ...
conaticus's user avatar
  • 135
5 votes
1 answer
258 views

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. ...
William Lewis's user avatar
1 vote
1 answer
93 views

Problem description. I have JSON which comes in bad shape: ...
Martin Kleiven's user avatar
12 votes
4 answers
3k views

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 ...
Shipof123's user avatar
  • 353
13 votes
2 answers
3k views

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 ...
Ben A's user avatar
  • 10.8k
3 votes
0 answers
132 views

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
5 votes
0 answers
205 views

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 ...
Ben A's user avatar
  • 10.8k
8 votes
1 answer
240 views

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 ...
Ben A's user avatar
  • 10.8k
6 votes
0 answers
434 views

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 ...
FreezePhoenix's user avatar
4 votes
0 answers
481 views

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 ...
CAD97's user avatar
  • 1,944
6 votes
2 answers
1k views

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 ...
Michał Paszkowski's user avatar

15 30 50 per page