Skip to content

ルール左辺で、プロセス文脈と優先順位のためのカッコを併用するとパースできない #7

@avtomat2023

Description

@avtomat2023

以下のコードをコンパイルすると

init($x) :- int($x) | (a($x), a($x)).

以下のエラーが出力される。

SYNTAX ERROR: illegal object in an atom argument: $x
SYNTAX ERROR: illegal object in an atom argument: $x
SYNTAX ERROR: rule with free variable: ~3, at line 1
SYNTAX ERROR: rule with free variable: ~4, at line 1
Compilation Failed

ちなみに、以下は問題なくコンパイルできる。

init :- (a(X), a(X)).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions