NUANCE GRAMMAR SPECIFICATION LANGUAGE (GSL)
Before you write a grammar file,
It only takes a little while
To learn the simple syntax rules
You need to use the Nuance tools.
The semicolon's thrown away.
Just lowercase the words you say,
But uppercase each grammar name
Since big and little aren't the same.
Put a dot before a grammar
That your app might have to scan for.
Grammars Nuance has approved
You can get with pound include.
Parentheses concatenate,
The brackets mark the alternates.
A question mark precedes a word
If sometimes it might not be heard.
Use plus or star to iterate,
But not to overgenerate.
A value a subgrammar passed
Must be put somewhere at last
Use a colon and then say
The name for storing it away.
Unless you put it in a slot
The system acts like it forgot.
Use curly braces for NL
That's the stuff you use to tell
Your program what each sentence means
Using slots as go-betweens.
With string and structure, int and list,
Several slot types do exist.
Strings you see set off by quotes
Ints are numbers, so are floats.
But there inside the curly braces,
Delimiters show different faces
With angle brackets you've assigned
A slot a value and a kind.
Within brackets inside braces,
Angles fill in structure places!
Parentheses mean function call,
But wait a minutethat's not all.
A list is set off by them, too.
They also mark return value.
A function call is not like C
No comma must there ever be.
Use a dollar sign to get
The variables you have set.
Don't forget that you must list
Each slot your app needs to exist
In another separate file
If you want things to compile.
When you've learned these rules well,
You can program GSL!
Home Articles Site Map Links Contact
Last updated by Brian Krause, brk@adducive.com, August 1, 2005
Adducive 1 650-274-2415 (+1 650-BRIA-415) |