Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

28
LINES

< > BotCompany Repo | #1026451 // Common procedures (English statement -> JavaX)

Document

/* Syntax:

     English sentence with dollar variables :=
       (Conditions)

       JavaX expression or block
*/

the text contains the token $x (not ignoring case) :=
  ($x is a quoted string)

  containsJavaToken(the_text, $x)
  
  
the text contains the token $x (ignoring case) :=

  containsJavaTokenIC(the_text, $x)
  

assume the variables are "X", "Y" and "Z" :=

  assumeMapping(variables := litset("X", "Y", "Z"));
  

$x is bigger than $y :=
  (when $x and $y are literal integers of any length)

  cmp(bigint($x), bigint($y)) > 0

download  show line numbers   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

-
Snippet ID: #1026451
Snippet name: Common procedures (English statement -> JavaX)
Eternal ID of this version: #1026451/10
Text MD5: c5c39adb5cce75fcc3edb8c5be9c04a4
Author: stefan
Category: javax
Type: Document
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-01-04 20:54:17
Source code size: 573 bytes / 28 lines
Pitched / IR pitched: No / No
Views / Downloads: 189 / 83
Version history: 9 change(s)
Referenced in: