2022-12-06 00:34:41 +03:00
|
|
|
================================================================================
|
2022-12-04 03:13:40 +03:00
|
|
|
Simple shape
|
2022-12-06 00:34:41 +03:00
|
|
|
================================================================================
|
2022-12-04 00:07:26 +03:00
|
|
|
foo
|
2022-12-04 03:13:40 +03:00
|
|
|
bar
|
2022-12-04 00:07:26 +03:00
|
|
|
|
2022-12-06 00:34:41 +03:00
|
|
|
--------------------------------------------------------------------------------
|
2022-12-04 00:07:26 +03:00
|
|
|
|
2022-12-04 03:13:40 +03:00
|
|
|
(source_file
|
|
|
|
(shape (identifier))
|
|
|
|
(shape (identifier))
|
|
|
|
)
|
2022-12-04 00:07:26 +03:00
|
|
|
|
2022-12-06 00:34:41 +03:00
|
|
|
================================================================================
|
2022-12-04 03:13:40 +03:00
|
|
|
Complex identifier
|
2022-12-06 00:34:41 +03:00
|
|
|
================================================================================
|
2022-12-04 03:13:40 +03:00
|
|
|
Foo bar
|
|
|
|
-Biz-baz-
|
2022-12-04 00:07:26 +03:00
|
|
|
|
2022-12-06 00:34:41 +03:00
|
|
|
--------------------------------------------------------------------------------
|
2022-12-04 00:07:26 +03:00
|
|
|
|
|
|
|
(source_file
|
2022-12-04 03:13:40 +03:00
|
|
|
(shape (identifier))
|
|
|
|
(shape (identifier))
|
|
|
|
)
|
|
|
|
|
2022-12-06 00:34:41 +03:00
|
|
|
================================================================================
|
2022-12-04 03:36:46 +03:00
|
|
|
Inline shapes
|
2022-12-06 00:34:41 +03:00
|
|
|
================================================================================
|
2022-12-04 03:36:46 +03:00
|
|
|
foo.baz
|
|
|
|
|
2022-12-06 00:34:41 +03:00
|
|
|
--------------------------------------------------------------------------------
|
2022-12-04 03:36:46 +03:00
|
|
|
|
|
|
|
(source_file
|
|
|
|
(shape
|
|
|
|
(identifier)
|
|
|
|
(dot)
|
|
|
|
(identifier)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
2022-12-04 00:07:26 +03:00
|
|
|
|
2022-12-06 00:34:41 +03:00
|
|
|
================================================================================
|
2022-12-04 03:27:27 +03:00
|
|
|
Many shapes inline
|
2022-12-06 00:34:41 +03:00
|
|
|
================================================================================
|
2022-12-04 03:13:40 +03:00
|
|
|
a;b;c
|
2022-12-04 00:07:26 +03:00
|
|
|
|
2022-12-06 00:34:41 +03:00
|
|
|
--------------------------------------------------------------------------------
|
2022-12-04 00:07:26 +03:00
|
|
|
|
|
|
|
(source_file
|
2022-12-04 03:27:54 +03:00
|
|
|
(shape (identifier))
|
|
|
|
(shape (identifier))
|
|
|
|
(shape (identifier))
|
2022-12-04 03:13:40 +03:00
|
|
|
)
|
2022-12-04 00:07:26 +03:00
|
|
|
|
2022-12-06 00:34:41 +03:00
|
|
|
================================================================================
|
2022-12-04 00:07:26 +03:00
|
|
|
Aliased shapes
|
2022-12-06 00:34:41 +03:00
|
|
|
================================================================================
|
2022-12-04 03:13:40 +03:00
|
|
|
a: Foo Bar
|
|
|
|
a: Foo Bar; b: Biz Baz
|
2022-12-04 00:07:26 +03:00
|
|
|
|
2022-12-06 00:34:41 +03:00
|
|
|
--------------------------------------------------------------------------------
|
2022-12-04 00:07:26 +03:00
|
|
|
|
|
|
|
(source_file
|
2022-12-04 03:13:40 +03:00
|
|
|
(shape (identifier) (label))
|
|
|
|
(shape (identifier) (label))
|
|
|
|
(shape (identifier) (label))
|
|
|
|
)
|
2022-12-04 00:07:26 +03:00
|
|
|
|
2022-12-06 00:53:06 +03:00
|
|
|
================================================================================
|
|
|
|
It should skip white spaces
|
|
|
|
================================================================================
|
|
|
|
|
|
|
|
foo
|
|
|
|
|
|
|
|
bar : Foo Bar; baz
|
|
|
|
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
(source_file
|
|
|
|
(shape (identifier))
|
|
|
|
(shape (identifier) (label))
|
|
|
|
(shape (identifier))
|
|
|
|
)
|
|
|
|
|
2022-12-06 12:32:50 +03:00
|
|
|
================================================================================
|
|
|
|
Shape block
|
|
|
|
================================================================================
|
|
|
|
|
|
|
|
foo: {
|
|
|
|
bar: {
|
|
|
|
baz: {
|
|
|
|
biz
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
(source_file
|
|
|
|
(shape (identifier) (block
|
|
|
|
(shape (identifier) (block
|
|
|
|
(shape (identifier) (block
|
|
|
|
(shape (identifier))
|
|
|
|
))
|
|
|
|
))
|
|
|
|
))
|
|
|
|
)
|
2022-12-06 12:41:41 +03:00
|
|
|
|
|
|
|
================================================================================
|
|
|
|
Aliased shape block
|
|
|
|
================================================================================
|
|
|
|
|
|
|
|
foo: Foo {
|
|
|
|
bar: Bar {
|
|
|
|
baz: Baz {
|
|
|
|
biz: Biz
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
(source_file
|
|
|
|
(shape (identifier) (label) (block
|
|
|
|
(shape (identifier) (label) (block
|
|
|
|
(shape (identifier) (label) (block
|
|
|
|
(shape (identifier) (label))
|
|
|
|
))
|
|
|
|
))
|
|
|
|
))
|
|
|
|
)
|