Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
doxverilog
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
doxverilog
Commits
f5ff1b8e
Commit
f5ff1b8e
authored
Jul 03, 2014
by
Maksim Osipov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Language parser: added support for C# property accessors visibility modifiers.
parent
070c3554
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
entry.h
src/entry.h
+4
-0
scanner.l
src/scanner.l
+4
-0
No files found.
src/entry.h
View file @
f5ff1b8e
...
...
@@ -135,6 +135,10 @@ class Entry
static
const
uint64
Singleton
=
(
1ULL
<<
14
);
// UNO IDL
// member specifiers (add new items to the beginning)
static
const
uint64
PrivateGettable
=
(
1ULL
<<
20
);
// C# private getter
static
const
uint64
ProtectedGettable
=
(
1ULL
<<
21
);
// C# protected getter
static
const
uint64
PrivateSettable
=
(
1ULL
<<
22
);
// C# private setter
static
const
uint64
ProtectedSettable
=
(
1ULL
<<
23
);
// C# protected setter
static
const
uint64
Inline
=
(
1ULL
<<
24
);
static
const
uint64
Explicit
=
(
1ULL
<<
25
);
static
const
uint64
Mutable
=
(
1ULL
<<
26
);
...
...
src/scanner.l
View file @
f5ff1b8e
...
...
@@ -6129,6 +6129,10 @@ OPERATOR "operator"{B}*({ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP})
BEGIN(FindMembers);
}
}
<CSAccessorDecl>"private "{BN}*"set" { if (curlyCount==0) current->spec |= Entry::PrivateSettable; }
<CSAccessorDecl>"protected "{BN}*"set" { if (curlyCount==0) current->spec |= Entry::ProtectedSettable; }
<CSAccessorDecl>"private "{BN}*"get" { if (curlyCount==0) current->spec |= Entry::PrivateGettable; }
<CSAccessorDecl>"protected "{BN}*"get" { if (curlyCount==0) current->spec |= Entry::ProtectedGettable; }
<CSAccessorDecl>"set" { if (curlyCount==0) current->spec |= Entry::Settable; }
<CSAccessorDecl>"get" { if (curlyCount==0) current->spec |= Entry::Gettable; }
<CSAccessorDecl>"add" { if (curlyCount==0) current->spec |= Entry::Addable; }
...
...
Write
Preview
Markdown
is supported
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