このWikiは古くなりました:新しいWikiへ移動

  • Program = Extends { FuncDecl? | NativeDecl? | Comment | Sentence}
  • Sentence = { Block | While | For | If | Return | ExprS | Forin | Comment | Break }
  • Comment = { /*... */ | // ... }
  • Extends = { 'extends' ResourceVal? ';'}?
  • ExprS = Expr ';'
  • Expr = { LVal ( '=' | '+=' | '-=') }? RVal
  • RVal
     OrEx
     {}
      '||
      OrEx
    OrEx
     AndEx
     {}
      '&&
      AndEx
    AndEx
     IsEx
     {}
      |
       '!=
       '==
       '>=
       '<=
       '>
       '<
      IsEx
    IsEx
     CompEx
     []
      'is
      ResourceVal
    CompEx
     ASEx
     {}
      |
       '+
       '-
      ASEx
    ASEx
     MDEx
     {}
      |
       '*
       '/
       '%
      MDEx
    MDEx
     []
      |
       '-
       '!
     Una
    |Una
     IncEx
     Const
     Par
     NewObj
    IncEx
     LVal
     []
      |
       '++
       '--
    NewObj
     'new
     ResourceVal
     '(
     ArgList
     ')
    Par
     '(
     Expr
     ')
    Const
     |
      'null
      'NUM
      'STRING
    LVal
     LValE
     {}
      '.
      LValE
    LValE
     |
      'SYMBOL
      'constructor
     []
      '(
      ArgList
      ')
    ResourceVal
     'SYMBOL
     {}
      '.
      'SYMBOL
    []ArgList
     Expr
     {}
      ',
      Expr
    Block
     '{
     {}
      Sentence
     '}
    Forin
     'for
     '(
     LVal
     'in
     Expr
     ')
     Sentence
    While
     'while
     '(
     Expr
     ')
     Sentence
    For
     'for
     '(
     Expr
     ';
     Expr
     ';
     Expr
     ')
     Sentence
    Break
     'break
     ';
    If
     'if
     '(
     Expr
     ')
     Sentence
     []
      'else
      Sentence
    Return
     'return
     []
      Expr
     ';
    FuncDecl
     |
      'function
      'constructor
      'destructor
     'SYMBOL
     '(
     VArgList
     ')
     VarBlock
    NativeDecl
     'native
     'SYMBOL
     ';
    []VArgList
     'SYMBOL
     {}
      ',
      'SYMBOL
    VarBlock
     '{
     {}
      VarDecl
     {}
      Sentence
     '}
    VarDecl
     'var
     VArgList
     ';

トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2017-11-14 (火) 21:24:37 (2360d)