Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Anders Blomdell
LabComm
Commits
e44e0320
Commit
e44e0320
authored
May 18, 2015
by
Sven Gestegård Robertz
Browse files
made QUOTEDSTRING an option for Intention values
parent
94be58ca
Changes
2
Hide whitespace changes
Inline
Side-by-side
compiler/2014/LabCommParser.parser
View file @
e44e0320
...
...
@@ -65,7 +65,7 @@ List annotation_list =
;
String
key
=
IDENTIFIER
;
String
stringliteral
=
IDENTIFIER
;
String
stringliteral
=
IDENTIFIER
|
QUOTEDSTRING
;
Annotation
annotation
=
intention
.
i
|
docstring
.
d
;
Annotation
intention
=
LPAREN
key
.
k
COLON
stringliteral
.
v
RPAREN
{:
return
new
Intention
(
k
,
v
);
:};
...
...
examples/user_types/test.lc
View file @
e44e0320
...
...
@@ -5,9 +5,9 @@ typedef struct {
typedef int anInt;
typedef void avoid;
sample (function:trigger)(foo:bar) avoid doavoid;
sample (function:
"a
trigger
"
)(foo:bar) avoid doavoid;
sample (a:b) "
a
struct
with
an int and a ref" struct {
sample (a:b) "
A
struct
:
an int and a ref
.
" struct {
(c:d)(e:f) int x;
sample reference;
} intAndRef;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment