Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
capnproto
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
capnproto
Commits
d6f3cecd
Commit
d6f3cecd
authored
Dec 17, 2013
by
Stanislav Ivochkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
calculator.capnp style adjusting
p.s. thanks @cstrahan for vim syntax highlighting
parent
e0ac5f02
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
calculator.capnp
c++/samples/calculator.capnp
+3
-3
No files found.
c++/samples/calculator.capnp
View file @
d6f3cecd
...
...
@@ -46,7 +46,7 @@ interface Calculator {
# get each operator and then using them in evaluate() still
# only takes one network round trip.
evaluate @0 (expression
: Expression) -> (value:
Value);
evaluate @0 (expression
:Expression) -> (value :
Value);
# Evaluate the given expression and return the result. The
# result is returned wrapped in a Value interface so that you
# may pass it back to the server in a pipelined request. To
...
...
@@ -103,11 +103,11 @@ interface Calculator {
# functions defined on the server and then passed back to it are called
# locally.
call @0 (params :List(Float64)) -> (value
:
Float64);
call @0 (params :List(Float64)) -> (value
:
Float64);
# Call the function on the given parameters.
}
getOperator @2 (op
: Operator) -> (func:
Function);
getOperator @2 (op
:Operator) -> (func :
Function);
# Get a Function representing an arithmetic operator, which can then be
# used in Expressions.
...
...
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