Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
X
xcap-capability-linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xcap
xcap-capability-linux
Commits
d95c336e
Commit
d95c336e
authored
Oct 23, 2015
by
Sarah Spall
Committed by
Vikram Narayanan
Oct 25, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
committing to switch branches
parent
0280ecec
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
tools/lcd/idl/include/lcd_ast.h
tools/lcd/idl/include/lcd_ast.h
+2
-0
tools/lcd/idl/parser/lcd_idl.peg
tools/lcd/idl/parser/lcd_idl.peg
+12
-2
No files found.
tools/lcd/idl/include/lcd_ast.h
View file @
d95c336e
...
...
@@ -186,6 +186,7 @@ class ProjectionField : public Variable //?
class
ProjectionType
:
public
Type
// complex type
{
const
char
*
id_
;
const
char
*
real_type_
;
std
::
vector
<
ProjectionField
*>
fields_
;
...
...
@@ -216,6 +217,7 @@ class Parameter : public Variable
Rpc
*
function_
;
public:
Parameter
();
Parameter
(
Type
*
type
,
const
char
*
name
);
~
Parameter
();
// virtual Marshal_type* accept(MarshalVisitor *worker, Registers *data);
...
...
tools/lcd/idl/parser/lcd_idl.peg
View file @
d95c336e
...
...
@@ -183,6 +183,10 @@ unnamed_scope = Spacing OPENC Spacing s:UnnamedScopeDefinitions Rpc* Spacing C
value = s;
}}
pc_unnamed_scope= Spacing OPENC Spacing s:UnnamedScopeDefinitions p:ProjField* Spacing CLOSEC Spacing {{
}}
Interface = "interface" Space+ id:Identifier Spacing OPEN globals:Parameters Spacing CLOSE Spacing OPENC Spacing s:ModuleScopeDefinitions Rpc* us:unnamed_scope* Spacing CLOSEC Spacing {{
LexicalScope *module_scope = (LexicalScope*) s.getValue();
...
...
@@ -281,7 +285,10 @@ FirstParam = t:Type_form id:Identifier Spacing COMMA Spacing {{
FP_FirstParam = t:Type_form Spacing COMMA Spacing {{
value = new FPParameter((Type*) t.getValue());
}}
| FP_Parameter Spacing COMMA Spacing
| "rpc" Space+ rt:Type_form Spacing OPEN Spacing "*" Spacing id:Identifier CLOSE Spacing OPEN p:FP_Parameters CLOSE SEMI Spacing COMMA Spacing {{
FunctionPointer *fp = new FunctionPointer((char*) id.getValue(), (Type*) rt.getValue(), (std::vector<FPParameter*>) *p.getValue());
value = new FPParameter(fp);
}}
LastParam = t:Type_form id:Identifier Spacing {{
value = new Parameter((Type *) t.getValue(), (char *) id.getValue());
...
...
@@ -291,7 +298,10 @@ LastParam = t:Type_form id:Identifier Spacing {{
FP_LastParam = t:Type_form Spacing {{
value = new FPParameter((Type*) t.getValue());
}}
| FP_Parameter Spacing
| "rpc" Space+ rt:Type_form Spacing OPEN Spacing "*" Spacing id:Identifier CLOSE Spacing OPEN p:FP_Parameters CLOSE SEMI Spacing {{
FunctionPointer *fp = new FunctionPointer((char*) id.getValue(), (Type*) rt.getValue(), (std::vector<FPParameter*>) *p.getValue());
value = new FPParameter(fp);
}}
Parameters = f:FirstParam* l:LastParam {{
std::vector<Parameter* > *params = new std::vector<FPParameter*>();
...
...
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