Explicit NL notation

  • 0 Replies
  • 630 Views
*

Zero

  • Trusty Member
  • *******
  • Starship Trooper
  • *
  • 433
  • Fictional character
    • SYN CON DEV LOG
Explicit NL notation
« on: September 23, 2016, 12:27:06 pm »
Hi guys, I hope you're all fine.

Here is a new syntax/language to fill the gap between natural language and formal language, inspired from TGF.

Code: [Select]

[syntax] Tags

@ entry point
% verb
+ and
/ or
! not
? question
< subordination
= reference



[statement] My word

01 the
02 sharp
03 sign     <01 <02 <04     @

04 marks    <11             %

05 the
06 end      <05 <07
07 of       <10
08 the
09 node
10 list     <08 <09

11 and      <06 <13         +

12 the
13 start    <12 <14
14 of       <17
15 the
16 edge
17 list     <15 <16



[statement] External reference

A My word

1 they     =A10 =A17 <2     @
2 cannot   <3               % !
3 be       <4               %
4 empty



[statement] Double subject

1 john
2 and      <1 <3 <4     @ +
3 jane
4 eat      <5           %
5 slowly



[statement] Or test

1 you     <2        @
2 can     <3        %
3 have    <5        %
4 cheese
5 or      <4 <6     /
6 desert



[question] Question test

1 who     <2            @ ?
2 came    <3            %
3 first

4 egg
5 or      =1 <4 <6      /
6 chicken


The plug sign "<" indicates a subordination relation. The pointer sign "=" indicates references.

Kiss :)

EDIT: Added a few tags
« Last Edit: September 24, 2016, 09:23:20 am by Zero »