The L-SIF Syntax
Regular Expression Based Syntax Language Definition
This table provides a guideline as how to interpret the following two
tables.
Syntax | Description |
---|---|
| | Or |
* | Zero or more |
+ | One or more |
[] | Optional subexpression |
Comment Info | Appear in italics |
Tokens | Appear in ALL CAPITALS |
Key Words | Appear in bold |
L-SIF Lexical Conventions and Tokens
L-SIF is an ASCII file format which is similar lexically to C code.
L-SIF does not have a preprocessor, or any macro text facilities. It is
a static scoped language, like Pascal.
Nonterminal | -> | Production |
---|---|---|
part_layers | -> | ( LSIF ver:INT rel:INT units accuracy thickness offset layer_list ) |
units | -> | ( units units_setting ) |
units_setting | -> | mm | inches |
accuracy | -> | [ ( desired_accuracy value ) ] |
thickness | -> | ( thickness value ) |
offset | -> | ( offset value ) |
layer_list | -> | layer+ |
layer | -> | ( layer [ thickness ] vertex_list 1d_set* | contours_offset*) |
1d_list | -> | boolean | nested_1d |
boolean | -> | intersection | union | difference |
intersection | -> | ( intersection 1d_list+ ) |
union | -> | ( union 1d_list+ ) |
difference | -> | ( difference 1d_list+ ) |
nested_1d | -> | nested_1d_atom | contour |
nested_1d_atom | -> | ( nested1d nested_1d_property vertex_list contour nested_1d ) |
contour | -> | ( contour contour_property vertex_list contour_segment_list ) |
contours_offset | -> | contours offsets |
contours | -> | ( contours nested_1d+ ) |
offsets | -> | ( offset nested_1d+ ) |
nested_1d_property | -> | ( color color_setting ) |
|
(user extension) | |
contour_property | -> | ( color color_setting ) |
|
(user extension) | |
contour_segment_list | -> | id+ |
vertex_list | -> | vertex* |
vertex | -> | ( v id x:value y: value ) |
color_setting | -> | ( rgb R:value G:value B:value ) |
id | -> | INT |
value | -> | INT |
|
DECIMAL | |
|
( e mantissa:INT exponent:INT ) |
Alphabetic Index of Grammar Nonterminals
1d_set, accuracy, boolean, color_setting, contour, contour_property, contour_segment_list, difference, id, intersection, layer, layer_list, nested_1d, nested_1d_property, part_layers, thickness, union, units, units_setting, value, vertex, vertex_list
This page is maintained by Jianlin
Wang
E-mail: jianlin@cs.berkeley.edu
Last modified: 12/21/99
This page was designed and tested under Netscape using common HTML constructs. No browsers are blocked from viewing this page. Please send mail to the maintainer of this page if you find any broken links or errors in the page construction. |