PLC parses and executes source files in any language you design, and creating a
language plugin only requires about 300 lines of C programming. You can create
custom keywords, operators, and commands just by filling in a simple data structure
and supplying a small amount of supporting code. Most aspects of a computer
language can be created in just a few hours.
With the C language module, all language operators and most keywords such as FOR & SWITCH
work just like compiled C. Built-in enhancements allow you to do things like concatenate
strings easily (String1+="p.m."). Variable types are detected automatically,
so declaration is not necessary.
PLC can be designed to execute a great variety of language statements, from the simple:
10 PRINT "Hello World"
20 GOTO 10
to the complex:
do{
Test+=(((++Count)/27)%3)
+((Blah("test.exe",FIL_READONLY,4)>6)? 1 : 3);
}while(Test<500);
Applications
PLC is ideal for applications that need runtime language interpretation. If
you need to give your users or customers a flexible, powerful control interface,
a simple scripting language is an excellent way to do it. You can create a
language as simple or complex as neccessary, without having to deal with
confusing language creation programs like LEX and YACC. With the Pro version of
PLC, you have complete control to add custom features, and provide your users
with custom error and warning messages.