Sponsored Content
Top Forums Programming Tools for writing a simple syntax checker? Post 302280123 by Ilja on Monday 26th of January 2009 04:08:45 AM
Old 01-26-2009
Tools for writing a simple syntax checker?

I'm trying to write a small utility for syntax checking. I've tried using Flex/Bison, but these seem too advanced for my task. A simpler tool would be appreciated.
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Need help writing simple script

I'm trying to write a simple unix script that will delete files after 30 days of being created. I've never done this before but conceptually it sounds easy. Here is what I'm trying to do: Get System Date Get File Date If (sysdate-filedate>30days) rm file All of these files are contained... (1 Reply)
Discussion started by: tamdoankc
1 Replies

2. Shell Programming and Scripting

Shell script syntax checker

I have a rather big script that i have written in ksh and it is falling over in two places with a 'test argument' error. I know this usually means that the if statement is not correct, but it is fine. I have looked through the rest of the script for any odd brackets or ` marks, but can't see... (2 Replies)
Discussion started by: handak9
2 Replies

3. UNIX for Dummies Questions & Answers

HELP! writing simple shell script

how would i write a shell script to show the number of lines in which int variable appears in a c++ program. (3 Replies)
Discussion started by: deadleg
3 Replies

4. Shell Programming and Scripting

Writing a simple loop in perl

Dear all, I am a complete newbie to (perl) programming and I am completely stuck in a project. I have the following arrays @array_1 @array_2 @array_A @array_B @array_C Each element pair of array_1 and array_2 is linked to all elements of a third array (e.g. array_A, array_B or... (3 Replies)
Discussion started by: docdudetheman
3 Replies

5. Red Hat

Writing simple python setup commands

Building software in most languages is a pain. Remember ant build.xml, maven2 pom files, and multi-level makefiles? Python has a simple solution for building modules, applications, and extensions called distutils. Disutils comes as part of the Python distribution so there are no other packages... (0 Replies)
Discussion started by: Linux Bot
0 Replies

6. Shell Programming and Scripting

Shell syntax checker available, or is a new project needed?

I'd like a shell-script syntax checker that can detect at least the following errors, and more: 1. Variable $VAR used but VAR has not been defined. 2. Variable VAR defined but never used. 3. Use of unquoted variables which might break external commands e.g. SOMETHING in: value=`grep $SOMETHING... (5 Replies)
Discussion started by: garethr
5 Replies

7. Shell Programming and Scripting

Help with writing simple bash script

I want to write a bash script to: 1. Send an email from localhost to an external gmail account. (gmail then automatically forwards the message back to a pop account on the same server. 2. Script waits 3 minutes then checks to see if the email arrived, and if not, it sends an email to... (9 Replies)
Discussion started by: sallyanne
9 Replies

8. Shell Programming and Scripting

SIMPLE HTTP PROXY SERVER CHECKER (Completed)

Simple Http Proxy Server Checker Script with curl mirror proxies-scripts/proxc at master * Anoncheg1/proxies-scripts * GitHub output in terminal HTTP, HTTP Connect (HTTPS not supported) command line: proxc filename where filename is file like 119.110.69.185:8080 119.235.16.41:8080... (4 Replies)
Discussion started by: 654321
4 Replies

9. Shell Programming and Scripting

Completed: Domain name tools. Generator & Checker

I'm fairly new to bash scripts, and all things unix in general. But I was in desperate need of this script, so I took matters into my own hands and built it! The first script uses a password generator that creates 4 letter domain names and outputs only the ones that are available. Currently its... (0 Replies)
Discussion started by: Files
0 Replies
ipack(1)						      General Commands Manual							  ipack(1)

NAME
ipack - Manipulate Flex files containing Shapes SYNOPSIS
ipack -c SCRIPT ipack -x SCRIPT ipack -u SCRIPT DESCRIPTION
Flex files containing Shapes are used for the storage visual elements by the games Exult supports. While expack(1) can operate on such files, using ipack is more comfortable. It can extract images from the Flex file directly into PNG-format, and create or update Flex files from a list of PNG files. The first parameter determines the mode of operation: -c Creation New Flex and palette files are created according to the instructions contained in the SCRIPT file. -u Update Works like Creation, but updates an existing Flex file. -x Extraction The contents of the Flex file described in the SCRIPT file are extracted as PNG is dissected into its contents, as described in this script file. Script File Format Empty lines, and lines starting with a pound sign (#) are ignored. The names of the associated Flex archive and palette files are given in lines containing optional whitespace, one of the tokens archive or palette, whitespace, and the filename. Other lines define one shape each, and must begin with an image slot number, followed by a slash (/), the number of frames, a colon (:), and finally the PNG file specification. The numbers may be given either in decimal, in octal prefixed with 0; or in hexadecimal prefixed with 0x. The file specification consists of the filename PREFIX, optionally followed by a number and direction in brackets, optionally followed by whitespace and the word flat. Per default, each shape corresponds to a number of PNG files (one for each frame) named PREFIXnn.png with nn replaced by the frame number. If the optional bracket expression is used in the specification the Shape corresponds to a single PNG file instead. This file contains all frames, each of which is 8 by 8 pixels in size, arranged next to each other in a rectangular grid. The number in the bracket expression gives the size of this grid in the direction indicated. The direction can be either down or across. EXAMPLES
ipack -c island.scr Creates a Flex file and a palette file as specified by island.scr. ipack -x island.scr Extracts all components described in island.scr from the Flex file given therein. Example script # script file for island.flx archive island.flx # put the palette into this file palette island.pal # the zeroth image has 32 frames in the files # zero00.png to zero31.png 0/32:zero # image 5 consists of 22 frames stored in file # five.png in a grid 5 frames across (which means # 5 rows of which the last holds only 2 frames) 5/22:five(5 across) flat # image 4 consists of 12 frames stored in file # four.png in a 3 by 4 grid 4/12:four(4 down) flat # images 1 to 3 are unspecified BUGS
Tiled Shapes are currently extracted into multiple PNG files, not a single file as expected during Create/Update. AUTHOR
This manpage was written by Robert Bihlmeyer. It may be freely redistributed and modified under the terms of the GNU General Public License version 2 or higher. SEE ALSO
expack(1), exult(6) Exult 2002-03-24 ipack(1)
All times are GMT -4. The time now is 12:45 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy