LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


Old

Test Cases: Multi-line Input

Posted 10-10-2021 at 11:52 PM by astrogeek

This post is part of the Alphanumeric Calculator program group.

Test cases to validate multi-line input expressions.

By design a single expression is terminated by a line break. But you may enter expressions which span multiple lines by escaping the line break with a backslash as the last character before the line break similar to the usage in C preprocessor macro definitions, among others.

Test cases input file:

Code:
cat tests_multiline
...
Moderator
Views 328 Comments 0 astrogeek is offline
Old

ExTiX 21.10 KDE Plasma together with Anbox (“Android in a Box” with Google Play Store pre-installed) :: Build 211007

Posted 10-07-2021 at 03:24 PM by exton (Exton's Blog)

ABOUT ExTiX 21.10 – Build 211007
I have made a new version of ExTiX – The Ultimate Linux System. I call it ExTiX 21.10 KDE Anbox Live DVD. (The previous KDE/Anbox version was 20.12 from 201208). I have now included Anbox (Android in a Box – Anbox puts the Android operating system into a container, abstracts hardware access and integrates core system services into a GNU/Linux system. Every Android application will be integrated with your operating system like any other native application)....
ExTiX Admin
Views 422 Comments 2 exton is offline
Old

GUI frustration

Posted 10-04-2021 at 01:54 PM by Skaperen

i've been "doing" computers since around 1970 and professionally since 1979, back when mainframes were my thing. i tried some smaller computers, too. most were text. i did try an Apple II and it had some graphical stuff but i mostly did things on it with text commands. through the years, the graphical user interface has improved enough that it is pretty much used by most people for most things, not counting the times people type in their text messages, email, or their LQ blog posts....
Senior Member
Posted in Uncategorized
Views 1054 Comments 1 Skaperen is offline
Old

Alphanumeric Calculator: GNU Bison Specification

Posted 10-01-2021 at 07:34 PM by astrogeek
Updated 10-07-2021 at 01:34 PM by astrogeek (Rev. 3 source / typo)

This post is Part 4 of the Alphanumeric Calculator program group.

Note: This is Rev. 3 Bison version and requires Rev. 3 Flex version.

Copy the code below into a file named alphacalc.y in your local build directory for this project, the same directory where Makefile and alphacalc.l are located.

I wrote this version using GNU Bison 3.7.6 and gcc 10.3 on a Slackware -current platform, but it should work using any not-too-old Bison with one small change...
Moderator
Views 701 Comments 0 astrogeek is offline
Old

Alphanumeric Calculator: Flex Specification

Posted 10-01-2021 at 07:29 PM by astrogeek
Updated 10-07-2021 at 01:47 AM by astrogeek (Rev. 3 source)

This post is Part 3 of the Alphanumeric Calculator program group.

Note: This is Rev. 3 version and works with Rev. 3 Bison specification.

Copy the code below into a file named alphacalc.l in your build directory for this project where Makefile and alphacalc.y are located.

This is the specification file for a Flex generated lexical analyzer, also called a lexer or scanner.

A brief description of the file contents follows, but if you are...
Moderator
Views 474 Comments 0 astrogeek is offline

  



All times are GMT -5. The time now is 09:56 AM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration