New simple language


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting New simple language
# 1  
Old 04-22-2008
New simple language

Hi all,
I need to 'create' a new simple scripting language in order to allow SCADA operators make complex tasks against the system in an easy and friendly way.
In other words I need to write mini modules with DB readings or writings, calculations, and so on, but these instructions must be written in a simple scripting language easy to learn by the operators.
For example, this can be a script:
VALUE = OBTAIN (name_of_field)
VALUE2 = OBTAIN (name_of_field2)
RESULT = VALUE1 + VALUE2

something like this
Does anyone know how can I make it?
Someone told me about lexx and yacc. Does anybody know another way?
or another easier tools?
thank you in advance
# 2  
Old 04-22-2008
While "little languages" have a long and honored tradition, perhaps in today's day and age it would be simpler to create a module and/or some glue code for an existing scripting language, and perhaps teach the operators just a strict subset of that language. Implementing the language itself is also a lot easier in a reasonably high-level language. My suggestions would be to look at Python, Perl, or Lua, perhaps roughly in that order; if you have another scripting language which you and/or your operators are already familiar with, include that in the list, too.
# 3  
Old 04-22-2008
Question Character based menu interface

How about a character based menu driven interface instead of a new language. Leverage Perl to access/update the database behind the scenes. This way the operators are completely insulated from the details of the particular language or script and all they need to know is which menu option does what tasks.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Covert simple bash script in perl language

Hello, Anyone please covert this in perl language ######################## if ps faux | grep -v grep | grep ProcessXYZ then echo "$SERVICE is running, , everything is fine" exit 0 else echo "$SERVICE is not running" exit 2 fi Additional... (1 Reply)
Discussion started by: fed.linuxgossip
1 Replies

2. Shell Programming and Scripting

Very simple script using bash language

Dear AIXians, I have a task for very simple script, but I can't write it correctly :confused: I have a file called (out.txt), if any line of this file starts with the word 'ORA', it must send email, if the file (out.txt) don't have this word, so it do nothing. Please tell me how. ... (4 Replies)
Discussion started by: Mohannad
4 Replies

3. Red Hat

Syslog.conf: looking for a simple answer on a simple question

Cheers! In /etc/syslog.conf, if an error type is not specified, is it logged anywhere (most preferable is it logged to /var/log/messages) or not? To be more precise I am interested in error and critical level messages. At default these errors are not specified in syslog.conf, and I need to... (6 Replies)
Discussion started by: dr1zzt3r
6 Replies

4. Shell Programming and Scripting

Help making simple perl or bash script to create a simple matrix

Hello all! This is my first post and I'm very new to programming. I would like help creating a simple perl or bash script that I will be using in my work as a junior bioinformatician. Essentially, I would like to take a tab-delimted or .csv text with 3 columns and write them to a "3D" matrix: ... (16 Replies)
Discussion started by: torchij
16 Replies

5. Web Development

Simple Script for Multiple Language Sitemaps

Someone asked me to post a very simple script for creating multiple language sitemaps from a vbseo generated sitemap for vbulletin. You will need to create the required directories, change the paths and website name as appropriate. This code could be easily wrapped in a simple while loop and... (0 Replies)
Discussion started by: Neo
0 Replies

6. Programming

c language + simple question regarding memory addresses and ASCII characters

Just a simple question (which may seem silly so bear with me) that arose in my mind the other day. Do ASCII characters by themselves (e.g. /n, 0, a) have an actual memory address ? My question arises, because Im aware that each time I create and initalise a pointer like this for example int... (7 Replies)
Discussion started by: JamesGoh
7 Replies

7. Shell Programming and Scripting

Simple to you not simple to me pattern matchin help

hey all, im new and my first question is: say i have a word "blahblah" how do i get and replace the last letter of the word with say k, so replace the h with a k. However you cant just replace the h it has to change the LAST LETTER of the word. Cheers In advance. :b: (0 Replies)
Discussion started by: aleks001
0 Replies

8. Programming

Simple C question... Hopefully it's simple

Hello. I'm a complete newbie to C programming. I have a C program that wasn't written by me where I need to write some wrappers around it to automate and make it easier for a client to use. The problem is that the program accepts standard input to control the program... I'm hoping to find a simple... (6 Replies)
Discussion started by: Xeed
6 Replies

9. UNIX for Advanced & Expert Users

How to design a simple multi tasking shell in unix using C language

can any one help me in designing a shell in unix like bash shell using c language plzzzzzzzzzzzzzzzzzzzz help (1 Reply)
Discussion started by: mobile01
1 Replies

10. UNIX for Dummies Questions & Answers

Ok simple question for simple knowledge...

Ok what is BSD exactly? I know its a type of open source but what is it exactly? (1 Reply)
Discussion started by: Corrail
1 Replies
Login or Register to Ask a Question