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

25
LINES

< > BotCompany Repo | #1002718 // SNL Logic Engine (parsing test)

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Libraryless. Click here for Pure Java version (3679L/23K/77K).

!759

// [=[ doesn't work yet, but no time to hunt for this...

static S input = [[
  if   [User < says < what < is < a < XY]
  and  [XY < can < be < split < in < 2 < as < X < and < Y]
  and  [X < is < an < adjective]
  then [say < maybe < [a > XY] is < [a > Y] < that < is < [very > X] ]
]];

p {
  // parse lines
  for (S s : toLinesFullTrim(input)) {
    printStructure(snlToTree(s));
  }
  
  // parse all
  print();
  Lisp tree;
  time {
    tree = snlToTree(input);
  }
  printStructure(tree);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1002718
Snippet name: SNL Logic Engine (parsing test)
Eternal ID of this version: #1002718/1
Text MD5: 2517451b2a36ed3b78dbbb8a2d01646c
Transpilation MD5: 377d89489b51d908b7cd80dcbab83ad9
Author: stefan
Category: eleu / nl
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-02-18 00:39:05
Source code size: 525 bytes / 25 lines
Pitched / IR pitched: No / No
Views / Downloads: 714 / 714
Referenced in: [show references]