无法加载prolog源文件

时间:2015-11-23 07:20:13

标签: prolog

我在Prolog工作,当我尝试加载源文件时突然间我开始得到这个error: uncaught exception: error(syntax_error('user_input:1 (char:5) , | ] or operator expected in list'),read_term/3)

我创建了一个空的源文件test.pl并尝试加载它[test.pl]。但我收到同样的错误。我该如何解决这个问题?

1 个答案:

答案 0 :(得分:2)

如果你在问题中写的那样输入了['test.pl'],那么错误是由于没有使用atom作为编译和加载文件的列表符号快捷方式的参数。请改为[test]或仅 <form action="otherinventory.php" method="POST"> <label class="control-label" for="selectError">Branch:</label> <div class="controls3"> <select id="selectError3" name="Branch"> <?php $query = 'SELECT branch_ID,branch_add from db_thisurienterprice.tbl_branch where branch_ID !=' . $_SESSION['username']; $data = $conn->prepare($query); // Prepare query for execution $data->execute(); // Execute (run) the query while ($row2 = $data->fetch(PDO::FETCH_ASSOC)) { echo '<option value="' . $row2['branch_ID'] . '">' . $row2['branch_add'] . '</option>'; } ?> </select> </div> <!--<button type=submit class="fancybox fancybox.ajax" >Warehouse</button>--> <div class="span"> <a href="otherinventory.php" class="fancybox fancybox.ajax"> <button class="btn btn-small btn-success" data-rel="tooltip" title="To add new product ">Generate </button> </a><div> <br/> </form>