New Programming Language Invented
EDC is an interpreted language. Programs are written with any text editor and are saved in normal text files. When such a source code file is read by the interpreter (the Advanced Version of the "Easy Date Converter" software published by Hermetic Systems) it is executed line-by-line, with results output to a text window in the software.
EDC is an untyped programming language; all variables store numbers. There is, however, a conceptual difference between "date" variables and others. A "date" variable is a variable whose value is regarded by the programmer as holding a Julian day number (which is a number of days elapsed since January 1st, 4713 BCE, in the Julian Calendar).
When values are assigned to date variables a calendar designation may be appended, e.g., "date_iso = 2002-05-3 ISO". Calendars currently supported are the Common Era Calendar (a.k.a. the Gregorian Calendar), the Julian Calendar, the ISO Week Calendar and two forms of the Hermetic Leap Week Calendar. Dates may also be designated as ordinal (day-in-year) dates and as Julian day numbers.
A problem when processing dates is that they are written in different formats in different countries. The main difference is that in the U.S. dates are typically written in the form "1/31/2008" whereas in most other countries they are written in the form "31-1-2008" or "31.1.2008". To allow dates to be expressed in different formats EDC supports a statement of the form "date format =" followed by one of: Y-M-D, D-M-Y, M-D-Y, Y/M/D, D/M/Y, M/D/Y, Y.M.D, D.M.Y and M.D.Y.
The following keywords are used to control the order in which statements are executed: IF, THEN, IFNOT, ELSE, ELSEIF, ELSEIFNOT, ENDIF, DO, EXITDO, ENDDO, SKIP, NOSKIP, STOP. These are all used in the usual way, except that the keywords IFNOT and ELSEIFNOT are unusual, but their use is intuitive.
The interpreter in the software outputs results to a text window by means of the "output:" statement. The value of a numerical variable is output using the Val() function, and of a date variable using the DateVal() function, e.g., "output: Val(year)".
The principal means of input is the program being processed, in which variables are initialized. It is also possible to obtain input from a user while a program is running. This is done by means of an "input:" statement, which opens a dialog box to obtain a numerical value or a date.
In addition to the two functions Val() and DateVal(), which are intended only for use with the "output:" statement, there are currently about a dozen built-in functions. These include functions for (a) adding and substracting numbers and dates (e.g., to obtain the number of days between two dates), (b) getting the day of the week (e.g., Friday) for a particular date, (c) getting the number of the day, week, month or year of a given date in a given calendar, (d) ascertaining whether a year in a given calendar is a leap year and (e) gettting the date of new years day for a given year in a given calendar.
The EDC programming language supports user-defined functions and subroutines. Functions have the usual properties one expects in a programming language, such as that a function definition can include calls to other functions.
For more information about EDC and its interpreter, the "Easy Date Converter Advanced Version" software, see http://www.hermetic.ch/edca/edca.htm. Numerous examples of programs written in EDC are given at http://www.hermetic.ch/edca/functions.htm and associated web pages.
Company:
Hermetic Systems
Related press releases
-
New Programming Language Invented
[2007-03-18 15:32:40]
Hermetic Systems has released an interpreter for a new programming language called EDC which is designed for operations on and with calendar dates, such as date arithmetic and conversions from dates i... -
Visual analysis of texts
[2007-11-02 03:58:28]
The possibilities for the visual analysis of texts have been extended to the look-ahead analysis in the TextTransformer 1.4. TextTransformer is a development environment for the analysis and autom... -
Optimalon has released version 2.5 of its linear programming library.
[2008-01-14 08:44:57]
Mr. Smirnov, Marketing Director of the innovative software development firm, Optimalon Software, today announced the release of the company's newest version of its successful Linear Programming Librar... -
LangOver 5.0
[2009-02-12 23:00:48]
Have you ever tried to type in one language but the result was in another? Annoying, eh?! Thats because the keyboard layout was in a wrong language, and you forgot to use "ALT+SHIFT"... NO MORE!... -
ARI Makes .NET Ajax Programming Easier Than Ever
[2009-10-12 04:54:13]
Amidst the slew of tools and and libraries for .NET Ajax programming is a gem from Clipper Software (www.clippersoftware.com) called ARI. ARI is an acronym for Asynchronous Remote Interface, and is on... -
Software Publisher Hermetic Systems Begins 10th Year of Operation
[2006-07-07 14:54:35]
Hermetic Systems (in business since mid-1997) exists primarily to market the software developed by Peter Meyer (who holds a Master of Philosophy degree in computational physics). So far this software... -
dbQwikSite Web Site Generator Introduces New Low Cost Entry Level Editions
[2007-06-03 12:24:32]
TheDevShop Ltd. has just released two new entry level editions of its popular web site generator, dbQwikSite. dbQwikSite is a code generator, that can create PHP, ASP and ASP.net web pages connected ... -
conaito Technologies Introduces Powerful and Rapid Video2Flash converting SDK - ...
[2010-02-04 05:32:53]
conaito Video2Flash SDK - Video? Anywhere! Powerful and rapid Video to Flash converting engine for your applications and Websites The Video-to-Flash Software Development Kit (SDK) provides you a p... -
Learning Chinese Has Never Been So Easy!
[2006-07-15 07:33:31]
MonkeyKing Chinese is for people who are serious about learning Chinese language. It's a simple, efficient, and comprehensive tool and designed for the beginners and senior learners to learn Chinese l... -
Vision help desk now breaks language barriers with its "Multi-Language" feature!...
[2008-08-04 01:44:20]
TheVisionWorld.com providers of advanced help desk software "Vision", today announced another crucial feature "Multi-Language" Vision is an extensive web-based help desk software that empowers organiz...
English
German
French
Spanish
Russian
Romanian



