Regex via lex and yacc

Regex via lex and yacc What is a regex? Regular expressions (regex) are patterns used to match character combinations in strings. In JavaScript, regular expressions are also objects. These patterns are used with the exec() and test() methods of RegExp, and with the match(), matchAll(), replace(), search(), and split() methods of String. Why use lex and yacc? Lex and yacc are tools used to generate lexical analyzers and parsers. Lex reads an input stream specifying the lexical analyzer and outputs source code implementing the lexer in C....

June 6, 2024 · 5 min · 930 words · Aum Pauskar

Procedural programming in C

Procedural programming in C About the tutorial This tutorial is about procedural programming in C. We are going to use gcc within a linux environment to compile and run our programs. If you don’t want to install any compilers on the computer, you can use an online compiler like repl.it, or onlinegdb. Understanding the basics What is C? C is a general-purpose, procedural computer programming language supporting structured programming, lexical variable scope, and recursion, with a static type system....

February 26, 2024 · 12 min · 2476 words · Aum Pauskar