Skip to main content

Questions tagged [lexer]

a lexer is a program performing lexical analysis: it converts a sequence of characters into a sequence of tokens.

2 votes
5 answers
2k views

We are using a Software as a Service platform that allows to create custom code which integrates in the platform and all its features (dialogues for common objects like Account, Customer, Address, and ...
surfmuggle's user avatar
0 votes
2 answers
676 views

Aside from modes, Antlr grammars can use "actions" which have to be written in the target language, sometimes seen used to conditionally push and pop from the mode stack. If I were to make a ...
SeriousBusiness100's user avatar
0 votes
1 answer
758 views

I created a simple parser in Rust and defined the AST like this: enum Expression { Number(i32), BinaryOperator(Box<Expression>, Operator, Box<Expression>), Identifier(String), }...
Iter Ator's user avatar
  • 111
0 votes
2 answers
405 views

So I'm trying to write a interpreter with a lexer. Currently, it adds a token line by line and does some more processing later on. But when I look at sources online, they all seem to go word by word ...
StandingPad Animations's user avatar
0 votes
0 answers
488 views

I'm working on a feature where users can get data based on the if statement they write. The if statement looks something like the excel's conditionals. Basic syntax: IF ( lhs == rhs, ifTrue, ifFalse)...
Shahlin Ibrahim's user avatar
0 votes
1 answer
419 views

When writing a lexer/parser, why/when would an advised developer chose to define the tokens' types through an enumeration field/type hierarchy? The closest question I've found here so far was Lexing: ...
user avatar
-2 votes
1 answer
214 views

Lately I've been playing with writing my own programming language, following the excellent Crafting Interpreters book but I've hit something of a snag. I'd like to extend the parser to accept ...
FreeMemory's user avatar
3 votes
3 answers
590 views

I started development of simulator for simulation of distributed algorithms in language C. My work consist of creating simple language for algorithm description and simulator which takes the described ...
M.Puk's user avatar
  • 133

15 30 50 per page