Click here to Skip to main content
15,885,365 members
Everything / Lexical

Lexical

lexical

Great Reads

by honey the codewitch
A crash course in GLR parsing which can be used to parse highly ambiguous grammars
by honey the codewitch
A Pike virtual machine and optimizing compiler for regular expressions using an NFA engine
by honey the codewitch
Add non-backtracking fast DFA regular expression and finite state automata to your projects

Latest Articles

by honey the codewitch
Implementing a simple JSON parser with Visual FA
by Nicolas DESCARTES
How to write a lexical analyzer for SQL?
by honey the codewitch
Generate fast, easy to use lexers/scanners in major .NET languages
by honey the codewitch
Highly efficient access to JSON data sources and selective bulk loading JSON on any platform using a new JSON paradigm

All Articles

Sort by Score

Lexical 

18 Feb 2020 by honey the codewitch
A crash course in GLR parsing which can be used to parse highly ambiguous grammars
3 Feb 2020 by honey the codewitch
A Pike virtual machine and optimizing compiler for regular expressions using an NFA engine
1 Feb 2020 by honey the codewitch
Add non-backtracking fast DFA regular expression and finite state automata to your projects
20 Aug 2019 by honey the codewitch
Using PCK to create grammars, parsers and tokenizers for C# and other .NET languages
22 Feb 2020 by honey the codewitch
Glory can parse virtually anything, even natural language. Add powerful parsers to your projects. Parse languages like C# or incorporate human language parsing with your AI code.
11 Dec 2020 by honey the codewitch
Streaming your data and parsing on the go with tiny gadgets
N 14 Apr 2024 by honey the codewitch
Implementing a simple JSON parser with Visual FA
29 Jun 2016 by Richard Deeming
In Javascript, "this" is a tricky concept. Many articles have been written trying to explain the complications - for example:this - JavaScript | MDN[^]Javascript - The this keyword[^]Understand JavaScript’s “this” With Clarity, and Master It | JavaScript is Sexy[^]In this case, when you...
31 Jan 2020 by honey the codewitch
A small library for providing baseline Context-Free Grammar computations
11 Jan 2024 by Nicolas DESCARTES
How to write a lexical analyzer for SQL?
30 Jun 2016 by Mayank_Gupta_
function Employee() { this.name = "Mayank"; this.Age = 26; this.salary = 10000; var calculateBonus = function() { alert(this); return (this.salary + 1000); } calculateBonus();}var testObj = new Employee();In this code when we create an object of...
22 Mar 2019 by CPallini
Let me Google that for you.[^]
31 Jan 2020 by honey the codewitch
Add fast scanners/tokenizers to your C# project
25 Aug 2016 by Member 12703506
Hello i'd make a simple calculator example using ANTLR but there is a problem in operations (/,*,-,+) priority my code give them the same priority ,i need to make a top priority for multiplication and divisionthis is the grammar:grammar Calc; start : expr EOF;expr: expr...
20 Oct 2016 by Member 12800975
lex b2.lyacc -d -v b2.ygcc lex.yy.c y.tab.cWhat I have tried:Can someone plzz tell about the same
20 Oct 2016 by Wendelius
Since you're using Bison, have a look at Bison 3.0.4: Bison Options[^] Quote:-dThis is the same as --defines except -d does not accept a file argument since POSIX Yacc requires that -d can be bundled with other short options.Quote:-v--verbosePretend that %verbose was specified, i.e.,...
1 Aug 2018 by CPallini
Just Googling you may find many step-by-step tutorials on this very topic. See, for instance: Writing Your Own Toy Compiler Using Flex, Bison and LLVM (gnuu.org)[^].
31 May 2021 by Orly Ndonse
%{ #include "syntaxe.tab.h" char nom[]; %} chiffre [0-9] lettre [A-Za-z] entier (-)?{chiffre}{chiffre}* reel {entier}.{chiffre}*((e|E) {entier})? identifiant {lettre}({lettre}|{chiffre})* /*on va passer à la partie regles de traduction*/ %%...
19 May 2022 by abc174
Hi, I'm working on a define a new language with lex and yacc. However, lexer works fine but yacc doesn't. I'm not pretty sure if my grammar is completely right. I get "syntax error in input" from yacc. My lexing.py: # lexer.input(data). Reset...
31 Dec 2019 by honey the codewitch
Use the Parsley compositional parser generator to parse a complicated grammar with backtracking.
19 Jan 2020 by honey the codewitch
A completely programmable lexer/tokenizer/scanner generator in C# using a Pike Virtual Machine
20 Nov 2023 by honey the codewitch
Generate fast, easy to use lexers/scanners in major .NET languages
6 Aug 2019 by honey the codewitch
A parser generator and unification system for different parsing tools
9 Jan 2020 by honey the codewitch
Generate powerful, maintainable parsers in most major .NET languages using a friendly grammar format
22 Dec 2020 by honey the codewitch
Highly efficient access to JSON data sources and selective bulk loading JSON on any platform using a new JSON paradigm
17 Jan 2020 by honey the codewitch
Manage location tracking, lifetime, error reporting and basic parsing/lexing with this simple class
14 Mar 2020 by honey the codewitch
Learn how to implement recursive descent parsers, with examples for JSON and an integer expression evaluator
29 Jun 2016 by Sergey Alexandrovich Kryukov
Please see my comment to the Solution 1. In addition to that, I want to say:It's really important to clear the mind from OOP ideas. This is what is called "distractions" in this article: JS Objects: Distractions.I seriously advise to learn and and understand well.As to your example,...
29 Jun 2016 by Sergey Alexandrovich Kryukov
I hope you enjoyed the link I provided in Solution 2. Now, let's see what's going on with your simple case. One of the possible solutions would be this:function Employee() { this.name = "Mayank"; this.Age = 26; this.salary = 10000; // make alculateBonus a property: ...
30 Jun 2016 by Sergey Alexandrovich Kryukov
Mayank Gupta asked:Thanks for the reply sir. Its great to see the workarounds for the code I wrote in order to execute it as expected.Thanks a lot....But I would also like to know why the above code is Alerting me with the "Window" Object instead of Employee ObjectPlease see my comment...
29 Jun 2016 by Mayank_Gupta_
Thanks for the reply sir. Its great to see the workarounds for the code I wrote in order to execute it as expected. Thanks a lot....But I would also like to know why the above code is Alerting me with the "Window" Object instead of Employee Object.What i assume is that when "new...
1 Aug 2018 by RavenLee
I understand the tokenizing part. I have the lex reading the file, splitting the tokens, labeling them accordingly, and displaying it in the console. What is the process after this? 1)At this point do I try to pull the defines from preprocessor and lex again? Which would be in the lex.h file,...