不知道大家了解Lucence这个项目么,一个开源的搜索引擎。不过想看懂很难,因为需要很多相关的知识,我这里就翻译了一篇文档,JavaCC技术手册之JJTree参考文档,Lucence在一些主要的文法分析中用到了JavaCC,而JJTree是JavaCC的一个预处理。下面就是翻译:

JavaCC技术手册:JJTree参考文档 [翻译:Kevin Wang]

简洁

    JJTreeJavaCC源代码的不同地方嵌入语法树构建动作,可以理解为JavaCC的预处理工具。通过运行JavaCC创建解析器生成JJTree输出文件。这篇文档描述了如何使用JJTree,以及如何从中分离你的解析器。

    JJTree默认为每个非终结符生成代码来创建语法分析树节点。这种行为可以被修改以便于一些非终结符不生成节点或者因为一部分内容扩充而生成一个节点。

       JJTree已经定义了一个所有语法分析树节点必须实现的接口Node,这个接口定义诸如:设置节点的父节点、增加子节点、重新获得子节点 等操作方法。

       JJTree(为想要更多条件)可以设置 simple multi”两种模式之一。在“simple[单一]模式下语法分析树节点都是“SimpleNode”这个具体类型。而在“multi[多个]模式下语法分析树节点类型取决于节点的名字。如果你不为“Node”接口提供实现JJTree会为你生成一些基于“SimpleNode”的样品实现,你可以修改这个实现以适应需求。

       虽然JavaCC是一个从顶至下的解析器(LL(K)  通常我们只要用LL(1)即可 ),但是JJTree构造语法树过程却是从底至上构建的。为此使用堆栈,当他们被创建后它可以把节点压入堆栈中。当它找到一个父节点时,从堆栈中弹出子节点并且将其添加到父节点下,最后把新的父节点压入堆栈。堆栈是开放的意味着你可以使用内部语法行为对其访问:入堆栈,出堆栈,另外不管你有多么的适应请熟练使用它的内容。更多的重要信息请参看下面“节点作用域和用户行为”章节的介绍。

       JJTree提供2种基本节点种类定义,可以依据造句法的缩写使其使用起来更方便。

1、  明确节点:一个以指定子节点数创建的节点。其中许多节点可以被弹出堆栈成为新节点的子节点,然后把这个新节点压入栈。你可以像这样定义一个明确节点:

        #ADefiniteNode(INTEGER EXPRESSION)

   虽然INTEGER是目前为止使用最多的表达式,但明确节点参数“EXPRESSION”可以使用任何INTEGER 表达式。

2、  条件节点:当且仅当条件值为True时,带着所有被压入节点区域内部的子节点创建条件节点。如果条件值为False节点不会被创建,所有的子节点将残留在节点堆栈中。你可以像这样定义一个条件节点:

#ConditionalNode(BOOLEAN EXPRESSION)

       一个条件节点描述符“EXPRESSION”可以使用任何BOOLEAN 表达式。下边有2个常用的条件节点内容需要记忆:

                1、不确定节点

                      #IndefiniteNode #IndefiniteNode(true) 的简写

          2大节点

              #GTNode(>1) #GTNode(jjtree.arity() > 1) 的简写

 

       JJTree源代码中,当简写的不确定节点表达跟着一个括号表达式时,可能导致歧义。在那种情况下简写必须用完全写法替代。例如:

            ( ... ) #N ( a() ) 

       上面表达式逻辑不清,你必须明确的使用条件式:

       注意:节点描述符表达式不能有副作用,JJTree并没有指定表达式将被计算多少次。

       默认情况下JJTree把每一个非终结符作为一个不确定节点对待,从它的产生式的名                  

字衍生出节点名字。也可以用下面的语法给他一个不同的名字:

当解析器识别出了一个P1非终结符,它先定义一个节点,并在堆栈中进行标记,以便于一些由扩展P1非终结符而构建和入栈的分析树节点被弹出并成为 MyNode节点的子节点。

       如果想要使某个产生式禁止创建节点,你可以使用下面的语法:

    这样,一些根据非终结符入栈作为P2扩展的语法分析树节点会留在堆栈中,会被将来的产生式弹出作为其子节点,non-decorated[非包装]节点你也可以通过使用NODE_DEFAULT_VOID选项使之成为默认行为。

    这个例子中,一个不确定的节点P3被启动并标记堆栈,然后是1P4节点,1个或多个P5节点和1P6节点被解析。被入堆栈的任何节点都会被弹出成为P3的子节点。你可以更深一步的定制生成树:

       现在P3节点会有一个P4节点、一个ListOfP5s节点和一个P6节点作为子节点#Name结构表示一个后缀操作符,它的区域直接就是前面的扩展单元。

 

节点作用域和用户行为

    每个节点都有其作用域。这个作用域内的用户行为可以通过使用特殊标志符“jjtThis”来访问已被创建的节点。这个标志符被隐含的声明为节点的正确类型,这样此节点的一些字段、方法可以轻易的被访问。

一个作用域就是前面一个节点定义的扩展单位。这可能是一个括号表达式。当产生式符号被定义(或者是隐含定义的默认节点),它的作用域就是包括声明块在内的整个产生式的右侧。

你可以使用一个包括“jjtThis”扩展引用左侧的表达式。例如:

       ... ( jjtThis.my_foo = foo() ) #Baz ...

这里“jjtThis”引用了一个含有“my_foo”字段的“Baz”节点。foo() 产生式解析的结果是被赋给“my_foo”。

    节点作用域内用户的最终行为不同于所有的其他行为。当代码执行过程中,子节点已经被从堆栈中弹出并被添加给这个被压入堆栈的节点。这些孩子节点可以通过诸如这个节点的方法jjtGetChild().进行访问。除了最终用户行为之外的用户行为仅能访问堆栈中的子节点。此节点的方法对那些没有被赋给这个节点的孩子节点是无效的。

    一个条件计算结果为False的条件表达式条件节点既不能被得到以添加到堆栈中,其孩子节点也不能被添加。条件节点作用域内的最终用户行为可以通过调用方法nodeCreated()决定此节点是否被创建。如果节点条件被满足、节点被创建、并且被压入堆栈的话结果返回True,否则返回False

 

异常处理

       一个由节点作用域内扩展抛出却没有在节点作用域内捕获的异常将由JJTree自行处理。当这种情况发生时,那些再节点作用域内被压入堆栈的节点会被弹出堆栈并被抛弃。之后一个异常会被重新抛出。

       这样做的意图是使分析其可以进行错误校验并且使节点堆栈继续处于一个可知的状态。

       注意:一般JJTree 不能识别出此异常是否由节点作用于内用户行为抛出的。这样的异常有可能被不正确的处理。

 

节点范围钩子

如果NODE_SCOPE_HOOK选项被置为TrueJJTree会在每个节点作用域的入口和出口处调用用户自定义的2个解析器方法。这些方法必须有下面的形式:

如果解析器是静态的,那么这些方法也必须被声明成静态的。他们都以当前节点作为被调用的参数。

       一种用途是这些功能将用来存储节点的首尾标记符以便于输入可以很容易的被重现。例如:

 

       基于SimpleNodeMySimpleNode类中有下面2个额外的字段:


       另外一个用途是用于将解析器对象自身存储于节点以便于状态可以被解析器提供的所有节点所共享。

节点的生存周期

一个节点的建立经历了一个很好被确定的序列步骤。下面是从节点自身的透视图观察的序列。

1、创建节点需要一个独特的整形参量。这个参数确定了节点的种类,这在单一模式中有其有用。JJTree自动生成了一个声明了有效常量的类 parserTreeConstants.java 常量的名字取决于JJT前缀加文件中节点名字的大写字符串。用字符“.”代替字符“_ 。为方便起见,在同一个文件中维护了一个被称为jjtNodeName[]的字符串数组,它遍历了节点的未修改名字的常量。

2、节点的方法jjtOpen()被调用

3、如果NODE_SCOPE_HOOK选项被设置为True,那么用户自定义的方openNodeScope()将被调用并且以此节点为参数。这个方法可以初始化节点的字段或者调用节点的方法。例如,他可以存储节点的首标记符。

4、如果一个节点被解析时抛出了一个未捕获的异常,节点将被抛弃。JJTree将不再对其进行引用。虽然用户自定义的节点作用域钩子closeNodeHook()将不再调用此节点作为参数,但节点不会被关闭

5、另外,如果一个条件节点的条件计算值为False,节点将被抛弃。虽然用户自定义节点作用域钩子closeNodeHook()可能调用此节点作为参数,但节点不会被关闭。

6、另外,一个明确节点通过整形表达式制定的所有孩子节点或者在一个条件节点作用域内被压入堆栈的所有节点被赋给此节点。他们的添加次序并没有被确定。

7、节点的方法jjtClose()被调用。

8、节点被压入堆栈。

9、如果NODE_SCOPE_HOOK选项被设置为True,则用户自定义方法closenNodeScope()将被调用并且以此节点作为参数。

10、如果节点不是根节点,他将作为其他节点的字节点被添加并且它的jjtSetParent()方法被调用。

 

访问者支持

       JJTree为访问者提供了一些基本的设计模式。如果VISITOR选项被设置为TrueJJTree将会在生成所有节点类时插入jjtAccept()方法,并且生成一个以此节点为参数而被实现的访问者接口。[public Object visit(具体Node,Object)]

       访问者接口的名字由解析器名字加Visitor来构造。每当JJTree运行时接口会被生成,以便于他可以准确地表现解析其所使用的那些节点。如果实现类不能被新节点更新将会产生编译时错误。只是一个特性。

 

选项

       JJTree在命令行或者JavaCC选项声明中提供了下面这些选项:

       BUILD_NODE_FILES (default: true)

       SimpleNode以及语法中使用的其它节点创建样本实现。

       MULTI (default: false)

       创建多模式解析树。此选项默认为False,生成一个单一模式解析树。

       NODE_DEFAULT_VOID (default: false)

       此选项设置为True时,不在使每个非包装产生式定义一个节点,取而代之为空。

       NODE_FACTORY (default: false)

       用下面的方式使用一个工厂方法创建一个节点:

       public static Node jjtCreate(int id)

NODE_PACKAGE (default: "")

    被放进生成节点类里的包。默认为解析器的包。

    NODE_PREFIX (default: "AST")

    在多模式中,前缀用来从节点标志符构造节点类名字。默认前缀为 AST

    NODE_SCOPE_HOOK (default: false)

       在节点作用域入口和出口处插入调用用户自定义的解析方法。参见:节点作用域钩子。

       NODE_USES_PARSER (default: false)

       JJTree会使用一个选择的形式将解析对象传给构造函数。例如:

        MyNode(MyParser p, int id);

       STATIC (default: true)

       为静态解析器生成代码。选项默认为True。这必须一致的通过等效的JavaCC选项被使用。选项的值发布于JavaCC的源码中。

       VISITOR (default: false)

       在节点类中插入jjtAccept()方法,为语法中使用的每个节点类型产生一个访问者实现。

VISITOR_EXCEPTION (default: "")

       如果这个选项被设置,它将使用jjtAccept()visit()方法的形式。注意:这个选项将会在以后的某个JJTree版本中删除。如果不影响你请不要使用它。

       JJTREE_OUTPUT_DIRECTORY (default: use value of OUTPUT_DIRECTORY)

       默认情况下,在全局OUTPUT_DIRECTORY设置中指定JJTree生成的输出目录。明确的设置这个选项允许用户从树文件中分离解析器。

 

JJTree 状态

       JJTree通过解析器对象中的jjtree字段保持它的状态。你可以使用它的一些方法来操作节点堆栈。

 

 

 

 

 

 

 

节点对象

       所有的AST节点必须实现这个接口。它为构建节点间父子关系提供了基本的操作。

 

 

 

 

 

       SimpleNode类实现了Node接口,如果他不存在,那么JJTree会自动生成。你可以把这个类作为你自己节点实现的一个模板或者超类,或者你可以修改它以适应需求。SimpleNode为递归清理的节点和它的字节点额外提供了一个根本操作。你可以像这样的行为使用:


方法dump()的字符串参数被添加以暗示树的层级。

    如果VISITOR选项被设置,那么另一个有效的方法被生成:

       它轮流遍历节点的子节点,要求他们接受访问者。这对preorder and postorder[前序和后续]遍历可能是有用的。

 

例子

       JJTree发布了一些单一模式的例子其中包含解析数学表达式的文法。更多详细信息参见examples/JJTreeExamples/README

       还有一个利用JJTree构建的解释单一语言的程序解释器。更多详细信息参见examples/Interpreter/README

       一个关于HTML 3.2的文法也被发布了。更多信息参见examples/HTMLGrammars/RobsHTML/README

    一个使用访问者支持的例子的信息请参见examples/VTransformer/README

------------如下是英文原文---------------------------

JavaCC [tm]: JJTree Reference Documentation

Introduction

JJTree is a preprocessor for JavaCC [tm] that inserts parse tree building actions at various places in the JavaCC source. The output of JJTree is run through JavaCC to create the parser. This document describes how to use JJTree, and how you can interface your parser to it.

By default JJTree generates code to construct parse tree nodes for each nonterminal in the language. This behavior can be modified so that some nonterminals do not have nodes generated, or so that a node is generated for a part of a production's expansion.

JJTree defines a Java interface Node that all parse tree nodes must implement. The interface provides methods for operations such as setting the parent of the node, and for adding children and retrieving them.

JJTree operates in one of two modes, simple and multi (for want of better terms). In simple mode each parse tree node is of concrete type SimpleNode; in multi mode the type of the parse tree node is derived from the name of the node. If you don't provide implementations for the node classes JJTree will generate sample implementations based on SimpleNode for you. You can then modify the implementations to suit.

Although JavaCC is a top-down parser, JJTree constructs the parse tree from the bottom up. To do this it uses a stack where it pushes nodes after they have been created. When it finds a parent for them, it pops the children from the stack and adds them to the parent, and finally pushes the new parent node itself. The stack is open, which means that you have access to it from within grammar actions: you can push, pop and otherwise manipulate its contents however you feel appropriate. See Node Scopes and User Actions below for more important information.

JJTree provides decorations for two basic varieties of nodes, and some syntactic shorthand to make their use convenient.

A definite node is constructed with a specific number of children. That many nodes are popped from the stack and made the children of the new node, which is then pushed on the stack itself. You notate a definite node like this:

#ADefiniteNode(INTEGER EXPRESSION)

A definite node descriptor expression can be any integer expression, although literal integer constants are by far the most common expressions.

A conditional node is constructed with all of the children that were pushed on the stack within its node scope if and only if its condition evaluates to true. If it evaluates to false, the node is not constructed, and all of the children remain on the node stack. You notate a conditional node like this:

#ConditionalNode(BOOLEAN EXPRESSION)

A conditional node descriptor expression can be any boolean expression. There are two common shorthands for conditional nodes:

Indefinite nodes

#IndefiniteNode is short for #IndefiniteNode(true)

Greater-than nodes

#GTNode(>1) is short for #GTNode(jjtree.arity() > 1)

The indefinite node shorthand (1) can lead to ambiguities in the JJTree source when it is followed by a parenthesized expansion. In those cases the shorthand must be replaced by the full expression. For example:

	  ( ... ) #N ( a() ) 

is ambiguous; you have to use the explicit condition:

 ( ... ) #N(true) ( a()) 

WARNING: node descriptor expression should not have side-effects. JJTree doesn't specify how many times the expression will be evaluated.

By default JJTree treats each nonterminal as an indefinite node and derives the name of the node from the name of its production. You can give it a different name with the following syntax:

    void P1() #MyNode : { ... } { ... }

When the parser recognizes a P1 nonterminal it begins an indefinite node. It marks the stack, so that any parse tree nodes created and pushed on the stack by nonterminals in the expansion for P1 will be popped off and made children of the node MyNode.

If you want to suppress the creation of a node for a production you can use the following syntax:

    void P2() #void : { ... } { ... }

Now any parse tree nodes pushed by nonterminals in the expansion of P2 will remain on the stack, to be popped and made children of a production further up the tree. You can make this the default behavior for non-decorated nodes by using the NODE_DEFAULT_VOID option.

    void P3() : {}{P4() ( P5() )+ P6()}

In this example, an indefinite node P3 is begun, marking the stack, and then a P4 node, one or more P5 nodes and a P6 node are parsed. Any nodes that they push are popped and made the children of P3. You can further customize the generated tree:

    void P3() : {}{P4() ( P5() )+ #ListOfP5s P6()}

Now the P3 node will have a P4 node, a ListOfP5s node and a P6 node as children. The #Name construct acts as a postfix operator, and its scope is the immediately preceding expansion unit.

Node Scopes and User Actions

Each node is associated with a node scope. User actions within this scope can access the node under construction by using the special identifier jjtThis to refer to the node. This identifier is implicitly declared to be of the correct type for the node, so any fields and methods that the node has can be easily accessed.

A scope is the expansion unit immediately preceding the node decoration. This can be a parenthesized expression. When the production signature is decorated (perhaps implicitly with the default node), the scope is the entire right hand side of the production including its declaration block.

You can also use an expression involving jjtThis on the left hand side of an expansion reference. For example:

    ... ( jjtThis.my_foo = foo() ) #Baz ...

Here jjtThis refers to a Baz node, which has a field called my_foo. The result of parsing the production foo() is assigned to that my_foo.

The final user action in a node scope is different from all the others. When the code within it executes, the node's children have already been popped from the stack and added to the node, which has itself been pushed onto the stack. The children can now be accessed via the node's methods such as jjtGetChild().

User actions other than the final one can only access the children on the stack. They have not yet been added to the node, so they aren't available via the node's methods.

A conditional node that has a node descriptor expression that evaluates to false will not get added to the stack, nor have children added to it. The final user action within a conditional node scope can determine whether the node was created or not by calling the nodeCreated() method. This returns true if the node's condition was satisfied and the node was created and pushed on the node stack, and false otherwise.

Exception handling

An exception thrown by an expansion within a node scope that is not caught within the node scope is caught by JJTree itself. When this occurs, any nodes that have been pushed on to the node stack within the node scope are popped and thrown away. Then the exception is rethrown.

The intention is to make it possible for parsers to implement error recovery and continue with the node stack in a known state.

WARNING: JJTree currently cannot detect whether exceptions are thrown from user actions within a node scope. Such an exception will probably be handled incorrectly.

Node Scope Hooks

If the NODE_SCOPE_HOOK option is set to true, JJTree generates calls to two user-defined parser methods on the entry and exit of every node scope. The methods must have the following signatures:

    void jjtreeOpenNodeScope(Node n)void jjtreeCloseNodeScope(Node n)

If the parser is STATIC then these methods will have to be declared as static as well. They are both called with the current node as a parameter.

One use for these functions is to store the node's first and last tokens so that the input can be easily reproduced again. For example:

    void jjtreeOpenNodeScope(Node n){((MySimpleNode)n).first_token = getToken(1);}void jjtreeCloseNodeScope(Node n){((MySimpleNode)n).last_token = getToken(0);}

where MySimpleNode is based on SimpleNode and has the following additional fields:

    Token first_token, last_token;

Another use might be to store the parser object itself in the node so that state that should be shared by all nodes produced by that parser can be provided. For example, the parser might maintain a symbol table.

The Life Cycle of a Node

A node goes through a well determined sequence of steps as it is built. This is that sequence viewed from the perspective of the node itself:

the node's constructor is called with a unique integer parameter. This parameter identifies the kind of node and is especially useful in simple mode. JJTree automatically generates a file called parserTreeConstants.java that declares valid constants. The names of constants are derived by prepending JJT to the uppercase names of nodes, with dot symbols (".") replaced by underscore symbols ("_"). For convenience, an array of Strings called jjtNodeName[] that maps the constants to the unmodified names of nodes is maintained in the same file. the node's jjtOpen() method is called. if the option NODE_SCOPE_HOOK is set, the user-defined parser method openNodeScope() is called and passed the node as its parameter. This method can initialize fields in the node or call its methods. For example, it might store the node's first token in the node. if an unhandled exception is thrown while the node is being parsed then the node is abandoned. JJTree will never refer to it again. It will not be closed, and the user-defined node scope hook closeNodeHook() will not be called with it as a parameter. otherwise, if the node is conditional and its conditional expression evaluates to false then the node is abandoned. It will not be closed, although the user-defined node scope hook closeNodeHook() might be called with it as a parameter. otherwise, all of the children of the node as specified by the integer expression of a definite node, or all the nodes that were pushed on the stack within a conditional node scope are added to the node. The order they are added is not specified. the node's jjtClose() method is called. the node is pushed on the stack. if the option NODE_SCOPE_HOOK is set, the user-defined parser method closenNodeScope() is called and passed the node as its parameter. if the node is not the root node, it is added as a child of another node and its jjtSetParent() method is called.

Visitor Support

JJTree provides some basic support for the visitor design pattern. If the VISITOR option is set to true JJTree will insert an jjtAccept() method into all of the node classes it generates, and also generate a visitor interface that can be implemented and passed to the nodes to accept.

The name of the visitor interface is constructed by appending Visitor to the name of the parser. The interface is regenerated every time that JJTree is run, so that it accurately represents the set of nodes used by the parser. This will cause compile time errors if the implementation class has not been updated for the new nodes. This is a feature.

Options

JJTree supports the following options on the command line and in the JavaCC options statement:

BUILD_NODE_FILES (default: true) Generate sample implementations for SimpleNode and any other nodes used in the grammar. MULTI (default: false) Generate a multi mode parse tree. The default for this is false, generating a simple mode parse tree. NODE_DEFAULT_VOID (default: false) Instead of making each non-decorated production an indefinite node, make it void instead. NODE_FACTORY (default: false) Use a factory method with following signature to construct nodes:
public static Node jjtCreate(int id) NODE_PACKAGE (default: "") The package to generate the node classes into. The default for this is the parser package. NODE_PREFIX (default: "AST") The prefix used to construct node class names from node identifiers in multi mode. The default for this is AST. NODE_SCOPE_HOOK (default: false) Insert calls to user-defined parser methods on entry and exit of every node scope. See Node Scope Hooks above. NODE_USES_PARSER (default: false) JJTree will use an alternate form of the node construction routines where it passes the parser object in. For example,
 public static Node MyNode.jjtCreate(MyParser p, int id);MyNode(MyParser p, int id); 
STATIC (default: true) Generate code for a static parser. The default for this is true. This must be used consistently with the equivalent JavaCC options. The value of this option is emitted in the JavaCC source. VISITOR (default: false) Insert a jjtAccept() method in the node classes, and generate a visitor implementation with an entry for every node type used in the grammar. VISITOR_EXCEPTION (default: "") If this option is set, it is used in the signature of the generated jjtAccept() methods and the visit() methods. Note: this option will be removed in a later version of JJTree. Don't use it if that bothers you. JJTREE_OUTPUT_DIRECTORY (default: use value of OUTPUT_DIRECTORY) By default, JJTree generates its output in the directory specified in the global OUTPUT_DIRECTORY setting. Explicitly setting this option allows the user to separate the parser from the tree files.

JJTree state

JJTree keeps its state in a parser class field called jjtree. You can use methods in this member to manipulate the node stack.

    final class JJTreeState {/* Call this to reinitialize the node stack.  */void reset();/* Return the root node of the AST. */Node rootNode();/* Determine whether the current node was actually closed andpushed */boolean nodeCreated();/* Return the number of nodes currently pushed on the nodestack in the current node scope. */int arity();/* Push a node on to the stack. */void pushNode(Node n);/* Return the node on the top of the stack, and remove it from thestack.  */Node popNode();/* Return the node currently on the top of the stack. */Node peekNode();}

Node Objects

    /* All AST nodes must implement this interface.  It provides basicmachinery for constructing the parent and child relationshipsbetween nodes. */public interface Node {/** This method is called after the node has been made the currentnode.  It indicates that child nodes can now be added to it. */public void jjtOpen();/** This method is called after all the child nodes have beenadded. */public void jjtClose();/** This pair of methods are used to inform the node of itsparent. */public void jjtSetParent(Node n);public Node jjtGetParent();/** This method tells the node to add its argument to the node'slist of children.  */public void jjtAddChild(Node n, int i);/** This method returns a child node.  The children are numberedfrom zero, left to right. */public Node jjtGetChild(int i);/** Return the number of children the node has. */int jjtGetNumChildren();}

The class SimpleNode implements the Node interface, and is automatically generated by JJTree if it doesn't already exist. You can use this class as a template or superclass for your node implementations, or you can modify it to suit. SimpleNode additionally provides a rudimentary mechanism for recursively dumping the node and its children. You might use this is in action like this:

    {((SimpleNode)jjtree.rootNode()).dump(">");}

The String parameter to dump() is used as padding to indicate the tree hierarchy.

Another utility method is generated if the VISITOR options is set:

    {public void childrenAccept(MyParserVisitor visitor);}

This walks over the node's children in turn, asking them to accept the visitor. This can be useful when implementing preorder and postorder traversals.

Examples

JJTree is distributed with some simple examples containing a grammar that parses arithmetic expressions. See the file examples/JJTreeExamples/README for further details.

There is also an interpreter for a simple language that uses JJTree to build the program representation. See the file examples/Interpreter/README for more information.

A grammar for HTML 3.2 is also included in the distribution. See examples/HTMLGrammars/RobsHTML/README to find out more.

Information about an example using the visitor support is in examples/VTransformer/README.

 

本人英文水平太差,就当学习了,希望大家支持。

 

       

查看全文
如若内容造成侵权/违法违规/事实不符,请联系编程学习网邮箱:809451989@qq.com进行投诉反馈,一经查实,立即删除!

相关文章

  1. 免费分享教程集合

    C语言(计算机二级必过题库) 链接:https://pan.baidu.com/s/1jqgKJaY37MlaE44pIP5RqQ 提取码:dd7q Visual C++从入门到精通实战教程(10章) 链接:https://pan.baidu.com/s/1coLJwyIwQJ2MkdPw8uRKBQ 提取码:jfvm 《C语言精讲》从入门到精通(14章) 链接:https://pan.bai…...

    2024/5/9 13:15:41
  2. js中onclick事件用“return”开头+方法名的返回值

    js中onclick事件用“return”开头+方法名,方法内的返回值如果在任何一个事件上添加js方法上的时候要加上return; 在方法里面要加上返回值。return true:事件本身的功能接着往上执行 return false:事件本身的功能不执行。比如:在a标签内使用onClick事件,如果a标签的“href”是…...

    2024/4/29 7:16:02
  3. Could not load file or assembly 'AjaxPro.2' or one of its dependencies. 拒绝访问

    Could not load file or assembly AjaxPro.2 or one of its dependencies. 拒绝访问 郁闷啊。。怎么解决呢。。。 web.config里的配置如下: <httpHandlers> <remove verb="*" path="*.asmx"/> <add verb="*" path="*.a…...

    2024/5/9 17:56:59
  4. iOS关键字之nullable、nonnull、null_resettable、_Null_unspecified的区别

    nullable、nonnull、null_resettable、_Null_unspecified是iOS9.0出现的新的修饰关键词,下面我们来研究一下它们之间的区别。一 共同点1.可以进行代码规范,减少开发沟通成本,一看便知怎么赋值 2.只能用于对象声明,不能声明基本数据类型,因为只有对象才能置为nil二 不同点…...

    2024/5/9 16:45:12
  5. 很简单的一个c语言问题switch中用了return

    1.先给源码吧int main(){int i;//while(1){printf("i = ");scanf("%d", &i);switch(i){case 1:printf("\n i = 1");break;case 2:printf("\n i = 2\n");return 0;break;default:break;}printf("\nonly break will see this m…...

    2024/5/9 15:02:17
  6. 北大ACM - POJ试题分类 (2017整理版)

    北大ACM - POJ试题分类 *—— By EXP 2017-12-03 *转载请注明出处: by EXP http://exp-blog.com相关推荐文:旧版POJ分类目录 ACM绝版资源公开( 参考书、模板、讲义、指导) ACM国家集训队论文集(1999-2009) ACM测试数据合集 一位ACMer过来人的心得1.入门水题可用于练手与…...

    2024/5/8 6:35:13
  7. 在iis7下部署ASP.NET程序AjaxPro不能用问题解决办法

    我原来是在windows2003下面,用vs2005 c#+ajaxpro开发的一个b/s程序,ajaxpro一切都运行正常 现在我移植到vista下面,在iis7下配置好了,数据库访问什么的都很正常,就是ajaxpro部分的代码允许不正常 总是提示类名没有定义 代码如下: var nRtn=Index.GetValidateCode(documen…...

    2024/4/20 16:24:02
  8. HTML Tidy中文手册

    tidy tidy 名称 用法 简述 选项 用法简述 环境 退出返回 ______________________________ 配置详细说明 用法 警告 简述 选项 获取更多信息... 作者 翻译名称tidy- 一个验证,纠正,美化HTML文件的工具 (version: 18 June 2008)用法tidy[option ...] [file ...] [option ...] [f…...

    2024/5/9 8:29:55
  9. C++腾讯面试题库干货!作为程序员,这些都掌握了,还有什么理由拿不到offer?

    前面小编发的两篇文章就是相对这些问题的知识点。方便大家套用练习,特别在面试前翻看几次,临时记忆也好。助你轻松拿到大厂offer。记得关注我。C 和 C++ 区别const 有什么用途主要有三点: 1:定义只读变量,即常量 2:修饰函数的参数和函数的返回值 3: 修饰函数的定义体,这…...

    2024/5/1 8:01:01
  10. Smarty 学习随记!

    Smarty 学习随记!我的个人建议,下边的文字都是SMARTY里经常用到的一些基础概念的东西! 写的非常细致,而且接近中国人的思维了,都是工作中做的总结. 但是更全的资料到SMARTY的官方论坛上去看吧!!!!!http://www.phpinsider.com/smarty-forum/ 我注册的ID是:phpcoder虽然是全英文…...

    2024/4/12 6:41:57
  11. 警告:Pointer is missing a nullability type specifier (__nonnull or __nullable)

    我们都知道在swift中,可以使用!和?来表示一个对象是optional的还是non-optional,如view?和view!。而在Objective-C中则没有这一区分,view即可表示这个对象是optional,也可表示是non-optioanl。这样就会造成一个问题:在Swift与Objective-C混编时,Swift编译器并不知道一个…...

    2024/5/3 1:41:09
  12. MVC return View(string viewName) 中viewName的表达方式

    首先在Views中创建一个文件夹Other,再创建一个Index.cshtml 在HomeController 中的Index Action 中的return View可以如下return View("../Other/Index");return View("/Views/Other/Index.cshtml");当然,如果是在与HomeController 中的Index Action对应…...

    2024/4/12 12:34:08
  13. C++面试题集合

    (1)什么是预编译,何时需要预编译:答案:1、总是使用不经常改动的大型代码体。 2、程序由多个模块组成,所有模块都使用一组标准的包含文件和相同的编译选项。在这种情况下,可以将所有包含文件预编译为一个预编译头。 (2)char * const p char const * p const char *…...

    2024/4/19 8:23:02
  14. Xcode报编译器警告:Pointer is missing a nullability type specifier(_Nonnull..

    升级到Xcode8.0时,发现新建的一些方法会提示警告Google发现这是Xcode 6.3的新特性,即nullability annotations,以前自己没注意到。。。Nullability Annotations我们都知道在swift中,可以使用!和?来表示一个对象是optional的还是non-optional,如view?和view!。而在Object…...

    2024/5/3 8:36:42
  15. 面向对象脚本语言 Ruby 参考手册

    http://cn.ce-lab.net/man/index.html 面向对象脚本语言 Ruby 参考手册 http://cn.ce-lab.net/man/index.html...

    2024/4/20 11:20:17
  16. switch置 default 用法

    很久没有用过default 写程序了,突然陌生了,经过测试验证,发现了default的用法,总结如下:(1)default 一般是用在switch中的,其他地方是不是能用,还不清楚。 (2)default ,如字义,就是默认的意思,用在switch语法中,就是说如果没有在case 1/2/3/xxx范围内,则执行de…...

    2024/4/12 12:34:32
  17. AjaxPro使用说明【转载】

    AjaxPro使用说明 1目录 2修改历史纪录 31、什么是Ajax 42、为什么使用Ajax 43、Ajax应用场景 44、Ajax开发框架 55、AjaxPro说明 66、AjaxPro实例说明 62.1、添加AjaxPro.dll应用 62.2、配置web.config 82.3、添加服务端方法 92.4、添加…...

    2024/4/26 11:07:39
  18. 深度剖析nullable、__nullable、_Nullable、_Nonnull、null_resettable

    背景介绍在 Swift 中,我们会使用 ? 和 ! 去显式声明一个对象或者方法的参数是optional 还是 non-optional ,而在 Objective-C 中则没有这一区分,这样就会带来一个问题:在 Swift 与Objective-C 混编时,Swift编译器并不知道一个 Objective-C 对象或者一个方法的参数到底是 …...

    2024/5/6 7:14:20
  19. mysql 存储过程中不能使用 return 的解决办法

    mysql 的存储过程是不能使用 return 语句的,只有存储函数才有此功能。那么,有没有替代 return 的关键字呢?没有!像 exit, quit 之类的关键字全没有!怎么办?使用功能稍次一些的 leave 关键字吧,此关键字可以模仿 return 的行为。举一个例子吧:SET FOREIGN_KEY_CHECKS=0;…...

    2024/4/12 6:42:39
  20. 如何快速学好编程这门课程?

    一 ,怎样学习C语言 很多人对学习C语言感到无从下手,经常问我同一个问题:究竟怎样学习C语言?我是一个大学生,已经开发了很多年的程序,和很多刚刚起步的人一样,学习的第一个计算机语言就是C语言。经过这些年的开发,我深深的体会到C语言对于一个程序设计人员多么的重要,…...

    2024/5/3 7:30:30

最新文章

  1. javaWeb快速部署到tomcat阿里云服务器

    目录 准备 关闭防火墙 配置阿里云安全组 点击控制台 点击导航栏按钮 点击云服务器ECS 点击安全组 点击管理规则 点击手动添加 设置完成 配置web服务 使用yum安装heepd服务 启动httpd服务 查看信息 部署java通过Maven打包好的war包项目 Maven打包项目 上传项目 …...

    2024/5/9 21:58:46
  2. 梯度消失和梯度爆炸的一些处理方法

    在这里是记录一下梯度消失或梯度爆炸的一些处理技巧。全当学习总结了如有错误还请留言&#xff0c;在此感激不尽。 权重和梯度的更新公式如下&#xff1a; w w − η ⋅ ∇ w w w - \eta \cdot \nabla w ww−η⋅∇w 个人通俗的理解梯度消失就是网络模型在反向求导的时候出…...

    2024/5/9 21:23:04
  3. 01背包问题 小明的背包

    2.小明的背包1 - 蓝桥云课 (lanqiao.cn) #include <bits/stdc.h> using namespace std; const int N1010;//开始写的105 开小了 样例过了但最后只过了很少一部分 int n,m; int v[N],w[N]; int f[N][N];int main() {cin>>n>>m;for(int i1;i<n;i){cin>&…...

    2024/5/5 8:41:06
  4. vue3项目运行正常但vscode红色波浪线报错

    以下解决办法如不生效&#xff0c;可尝试 重启 vscode 一、Vetur插件检测问题 vetur 是一个 vscode 插件&#xff0c;用于为 .vue 单文件组件提供代码高亮以及语法支持。但 vue 以及 vetur 对于 ts 的支持&#xff0c;并不友好。 1、原因 如下图&#xff1a;鼠标放到红色波浪…...

    2024/5/8 2:15:24
  5. 【外汇早评】美通胀数据走低,美元调整

    原标题:【外汇早评】美通胀数据走低,美元调整昨日美国方面公布了新一期的核心PCE物价指数数据,同比增长1.6%,低于前值和预期值的1.7%,距离美联储的通胀目标2%继续走低,通胀压力较低,且此前美国一季度GDP初值中的消费部分下滑明显,因此市场对美联储后续更可能降息的政策…...

    2024/5/8 6:01:22
  6. 【原油贵金属周评】原油多头拥挤,价格调整

    原标题:【原油贵金属周评】原油多头拥挤,价格调整本周国际劳动节,我们喜迎四天假期,但是整个金融市场确实流动性充沛,大事频发,各个商品波动剧烈。美国方面,在本周四凌晨公布5月份的利率决议和新闻发布会,维持联邦基金利率在2.25%-2.50%不变,符合市场预期。同时美联储…...

    2024/5/9 15:10:32
  7. 【外汇周评】靓丽非农不及疲软通胀影响

    原标题:【外汇周评】靓丽非农不及疲软通胀影响在刚结束的周五,美国方面公布了新一期的非农就业数据,大幅好于前值和预期,新增就业重新回到20万以上。具体数据: 美国4月非农就业人口变动 26.3万人,预期 19万人,前值 19.6万人。 美国4月失业率 3.6%,预期 3.8%,前值 3…...

    2024/5/4 23:54:56
  8. 【原油贵金属早评】库存继续增加,油价收跌

    原标题:【原油贵金属早评】库存继续增加,油价收跌周三清晨公布美国当周API原油库存数据,上周原油库存增加281万桶至4.692亿桶,增幅超过预期的74.4万桶。且有消息人士称,沙特阿美据悉将于6月向亚洲炼油厂额外出售更多原油,印度炼油商预计将每日获得至多20万桶的额外原油供…...

    2024/5/9 4:20:59
  9. 【外汇早评】日本央行会议纪要不改日元强势

    原标题:【外汇早评】日本央行会议纪要不改日元强势近两日日元大幅走强与近期市场风险情绪上升,避险资金回流日元有关,也与前一段时间的美日贸易谈判给日本缓冲期,日本方面对汇率问题也避免继续贬值有关。虽然今日早间日本央行公布的利率会议纪要仍然是支持宽松政策,但这符…...

    2024/5/4 23:54:56
  10. 【原油贵金属早评】欧佩克稳定市场,填补伊朗问题的影响

    原标题:【原油贵金属早评】欧佩克稳定市场,填补伊朗问题的影响近日伊朗局势升温,导致市场担忧影响原油供给,油价试图反弹。此时OPEC表态稳定市场。据消息人士透露,沙特6月石油出口料将低于700万桶/日,沙特已经收到石油消费国提出的6月份扩大出口的“适度要求”,沙特将满…...

    2024/5/4 23:55:05
  11. 【外汇早评】美欲与伊朗重谈协议

    原标题:【外汇早评】美欲与伊朗重谈协议美国对伊朗的制裁遭到伊朗的抗议,昨日伊朗方面提出将部分退出伊核协议。而此行为又遭到欧洲方面对伊朗的谴责和警告,伊朗外长昨日回应称,欧洲国家履行它们的义务,伊核协议就能保证存续。据传闻伊朗的导弹已经对准了以色列和美国的航…...

    2024/5/4 23:54:56
  12. 【原油贵金属早评】波动率飙升,市场情绪动荡

    原标题:【原油贵金属早评】波动率飙升,市场情绪动荡因中美贸易谈判不安情绪影响,金融市场各资产品种出现明显的波动。随着美国与中方开启第十一轮谈判之际,美国按照既定计划向中国2000亿商品征收25%的关税,市场情绪有所平复,已经开始接受这一事实。虽然波动率-恐慌指数VI…...

    2024/5/7 11:36:39
  13. 【原油贵金属周评】伊朗局势升温,黄金多头跃跃欲试

    原标题:【原油贵金属周评】伊朗局势升温,黄金多头跃跃欲试美国和伊朗的局势继续升温,市场风险情绪上升,避险黄金有向上突破阻力的迹象。原油方面稍显平稳,近期美国和OPEC加大供给及市场需求回落的影响,伊朗局势并未推升油价走强。近期中美贸易谈判摩擦再度升级,美国对中…...

    2024/5/4 23:54:56
  14. 【原油贵金属早评】市场情绪继续恶化,黄金上破

    原标题:【原油贵金属早评】市场情绪继续恶化,黄金上破周初中国针对于美国加征关税的进行的反制措施引发市场情绪的大幅波动,人民币汇率出现大幅的贬值动能,金融市场受到非常明显的冲击。尤其是波动率起来之后,对于股市的表现尤其不安。隔夜美国股市出现明显的下行走势,这…...

    2024/5/6 1:40:42
  15. 【外汇早评】美伊僵持,风险情绪继续升温

    原标题:【外汇早评】美伊僵持,风险情绪继续升温昨日沙特两艘油轮再次发生爆炸事件,导致波斯湾局势进一步恶化,市场担忧美伊可能会出现摩擦生火,避险品种获得支撑,黄金和日元大幅走强。美指受中美贸易问题影响而在低位震荡。继5月12日,四艘商船在阿联酋领海附近的阿曼湾、…...

    2024/5/4 23:54:56
  16. 【原油贵金属早评】贸易冲突导致需求低迷,油价弱势

    原标题:【原油贵金属早评】贸易冲突导致需求低迷,油价弱势近日虽然伊朗局势升温,中东地区几起油船被袭击事件影响,但油价并未走高,而是出于调整结构中。由于市场预期局势失控的可能性较低,而中美贸易问题导致的全球经济衰退风险更大,需求会持续低迷,因此油价调整压力较…...

    2024/5/8 20:48:49
  17. 氧生福地 玩美北湖(上)——为时光守候两千年

    原标题:氧生福地 玩美北湖(上)——为时光守候两千年一次说走就走的旅行,只有一张高铁票的距离~ 所以,湖南郴州,我来了~ 从广州南站出发,一个半小时就到达郴州西站了。在动车上,同时改票的南风兄和我居然被分到了一个车厢,所以一路非常愉快地聊了过来。 挺好,最起…...

    2024/5/7 9:26:26
  18. 氧生福地 玩美北湖(中)——永春梯田里的美与鲜

    原标题:氧生福地 玩美北湖(中)——永春梯田里的美与鲜一觉醒来,因为大家太爱“美”照,在柳毅山庄去寻找龙女而错过了早餐时间。近十点,向导坏坏还是带着饥肠辘辘的我们去吃郴州最富有盛名的“鱼头粉”。说这是“十二分推荐”,到郴州必吃的美食之一。 哇塞!那个味美香甜…...

    2024/5/4 23:54:56
  19. 氧生福地 玩美北湖(下)——奔跑吧骚年!

    原标题:氧生福地 玩美北湖(下)——奔跑吧骚年!让我们红尘做伴 活得潇潇洒洒 策马奔腾共享人世繁华 对酒当歌唱出心中喜悦 轰轰烈烈把握青春年华 让我们红尘做伴 活得潇潇洒洒 策马奔腾共享人世繁华 对酒当歌唱出心中喜悦 轰轰烈烈把握青春年华 啊……啊……啊 两…...

    2024/5/8 19:33:07
  20. 扒开伪装医用面膜,翻六倍价格宰客,小姐姐注意了!

    原标题:扒开伪装医用面膜,翻六倍价格宰客,小姐姐注意了!扒开伪装医用面膜,翻六倍价格宰客!当行业里的某一品项火爆了,就会有很多商家蹭热度,装逼忽悠,最近火爆朋友圈的医用面膜,被沾上了污点,到底怎么回事呢? “比普通面膜安全、效果好!痘痘、痘印、敏感肌都能用…...

    2024/5/5 8:13:33
  21. 「发现」铁皮石斛仙草之神奇功效用于医用面膜

    原标题:「发现」铁皮石斛仙草之神奇功效用于医用面膜丽彦妆铁皮石斛医用面膜|石斛多糖无菌修护补水贴19大优势: 1、铁皮石斛:自唐宋以来,一直被列为皇室贡品,铁皮石斛生于海拔1600米的悬崖峭壁之上,繁殖力差,产量极低,所以古代仅供皇室、贵族享用 2、铁皮石斛自古民间…...

    2024/5/8 20:38:49
  22. 丽彦妆\医用面膜\冷敷贴轻奢医学护肤引导者

    原标题:丽彦妆\医用面膜\冷敷贴轻奢医学护肤引导者【公司简介】 广州华彬企业隶属香港华彬集团有限公司,专注美业21年,其旗下品牌: 「圣茵美」私密荷尔蒙抗衰,产后修复 「圣仪轩」私密荷尔蒙抗衰,产后修复 「花茵莳」私密荷尔蒙抗衰,产后修复 「丽彦妆」专注医学护…...

    2024/5/4 23:54:58
  23. 广州械字号面膜生产厂家OEM/ODM4项须知!

    原标题:广州械字号面膜生产厂家OEM/ODM4项须知!广州械字号面膜生产厂家OEM/ODM流程及注意事项解读: 械字号医用面膜,其实在我国并没有严格的定义,通常我们说的医美面膜指的应该是一种「医用敷料」,也就是说,医用面膜其实算作「医疗器械」的一种,又称「医用冷敷贴」。 …...

    2024/5/9 7:32:17
  24. 械字号医用眼膜缓解用眼过度到底有无作用?

    原标题:械字号医用眼膜缓解用眼过度到底有无作用?医用眼膜/械字号眼膜/医用冷敷眼贴 凝胶层为亲水高分子材料,含70%以上的水分。体表皮肤温度传导到本产品的凝胶层,热量被凝胶内水分子吸收,通过水分的蒸发带走大量的热量,可迅速地降低体表皮肤局部温度,减轻局部皮肤的灼…...

    2024/5/9 17:11:10
  25. 配置失败还原请勿关闭计算机,电脑开机屏幕上面显示,配置失败还原更改 请勿关闭计算机 开不了机 这个问题怎么办...

    解析如下&#xff1a;1、长按电脑电源键直至关机&#xff0c;然后再按一次电源健重启电脑&#xff0c;按F8健进入安全模式2、安全模式下进入Windows系统桌面后&#xff0c;按住“winR”打开运行窗口&#xff0c;输入“services.msc”打开服务设置3、在服务界面&#xff0c;选中…...

    2022/11/19 21:17:18
  26. 错误使用 reshape要执行 RESHAPE,请勿更改元素数目。

    %读入6幅图像&#xff08;每一幅图像的大小是564*564&#xff09; f1 imread(WashingtonDC_Band1_564.tif); subplot(3,2,1),imshow(f1); f2 imread(WashingtonDC_Band2_564.tif); subplot(3,2,2),imshow(f2); f3 imread(WashingtonDC_Band3_564.tif); subplot(3,2,3),imsho…...

    2022/11/19 21:17:16
  27. 配置 已完成 请勿关闭计算机,win7系统关机提示“配置Windows Update已完成30%请勿关闭计算机...

    win7系统关机提示“配置Windows Update已完成30%请勿关闭计算机”问题的解决方法在win7系统关机时如果有升级系统的或者其他需要会直接进入一个 等待界面&#xff0c;在等待界面中我们需要等待操作结束才能关机&#xff0c;虽然这比较麻烦&#xff0c;但是对系统进行配置和升级…...

    2022/11/19 21:17:15
  28. 台式电脑显示配置100%请勿关闭计算机,“准备配置windows 请勿关闭计算机”的解决方法...

    有不少用户在重装Win7系统或更新系统后会遇到“准备配置windows&#xff0c;请勿关闭计算机”的提示&#xff0c;要过很久才能进入系统&#xff0c;有的用户甚至几个小时也无法进入&#xff0c;下面就教大家这个问题的解决方法。第一种方法&#xff1a;我们首先在左下角的“开始…...

    2022/11/19 21:17:14
  29. win7 正在配置 请勿关闭计算机,怎么办Win7开机显示正在配置Windows Update请勿关机...

    置信有很多用户都跟小编一样遇到过这样的问题&#xff0c;电脑时发现开机屏幕显现“正在配置Windows Update&#xff0c;请勿关机”(如下图所示)&#xff0c;而且还需求等大约5分钟才干进入系统。这是怎样回事呢&#xff1f;一切都是正常操作的&#xff0c;为什么开时机呈现“正…...

    2022/11/19 21:17:13
  30. 准备配置windows 请勿关闭计算机 蓝屏,Win7开机总是出现提示“配置Windows请勿关机”...

    Win7系统开机启动时总是出现“配置Windows请勿关机”的提示&#xff0c;没过几秒后电脑自动重启&#xff0c;每次开机都这样无法进入系统&#xff0c;此时碰到这种现象的用户就可以使用以下5种方法解决问题。方法一&#xff1a;开机按下F8&#xff0c;在出现的Windows高级启动选…...

    2022/11/19 21:17:12
  31. 准备windows请勿关闭计算机要多久,windows10系统提示正在准备windows请勿关闭计算机怎么办...

    有不少windows10系统用户反映说碰到这样一个情况&#xff0c;就是电脑提示正在准备windows请勿关闭计算机&#xff0c;碰到这样的问题该怎么解决呢&#xff0c;现在小编就给大家分享一下windows10系统提示正在准备windows请勿关闭计算机的具体第一种方法&#xff1a;1、2、依次…...

    2022/11/19 21:17:11
  32. 配置 已完成 请勿关闭计算机,win7系统关机提示“配置Windows Update已完成30%请勿关闭计算机”的解决方法...

    今天和大家分享一下win7系统重装了Win7旗舰版系统后&#xff0c;每次关机的时候桌面上都会显示一个“配置Windows Update的界面&#xff0c;提示请勿关闭计算机”&#xff0c;每次停留好几分钟才能正常关机&#xff0c;导致什么情况引起的呢&#xff1f;出现配置Windows Update…...

    2022/11/19 21:17:10
  33. 电脑桌面一直是清理请关闭计算机,windows7一直卡在清理 请勿关闭计算机-win7清理请勿关机,win7配置更新35%不动...

    只能是等着&#xff0c;别无他法。说是卡着如果你看硬盘灯应该在读写。如果从 Win 10 无法正常回滚&#xff0c;只能是考虑备份数据后重装系统了。解决来方案一&#xff1a;管理员运行cmd&#xff1a;net stop WuAuServcd %windir%ren SoftwareDistribution SDoldnet start WuA…...

    2022/11/19 21:17:09
  34. 计算机配置更新不起,电脑提示“配置Windows Update请勿关闭计算机”怎么办?

    原标题&#xff1a;电脑提示“配置Windows Update请勿关闭计算机”怎么办&#xff1f;win7系统中在开机与关闭的时候总是显示“配置windows update请勿关闭计算机”相信有不少朋友都曾遇到过一次两次还能忍但经常遇到就叫人感到心烦了遇到这种问题怎么办呢&#xff1f;一般的方…...

    2022/11/19 21:17:08
  35. 计算机正在配置无法关机,关机提示 windows7 正在配置windows 请勿关闭计算机 ,然后等了一晚上也没有关掉。现在电脑无法正常关机...

    关机提示 windows7 正在配置windows 请勿关闭计算机 &#xff0c;然后等了一晚上也没有关掉。现在电脑无法正常关机以下文字资料是由(历史新知网www.lishixinzhi.com)小编为大家搜集整理后发布的内容&#xff0c;让我们赶快一起来看一下吧&#xff01;关机提示 windows7 正在配…...

    2022/11/19 21:17:05
  36. 钉钉提示请勿通过开发者调试模式_钉钉请勿通过开发者调试模式是真的吗好不好用...

    钉钉请勿通过开发者调试模式是真的吗好不好用 更新时间:2020-04-20 22:24:19 浏览次数:729次 区域: 南阳 > 卧龙 列举网提醒您:为保障您的权益,请不要提前支付任何费用! 虚拟位置外设器!!轨迹模拟&虚拟位置外设神器 专业用于:钉钉,外勤365,红圈通,企业微信和…...

    2022/11/19 21:17:05
  37. 配置失败还原请勿关闭计算机怎么办,win7系统出现“配置windows update失败 还原更改 请勿关闭计算机”,长时间没反应,无法进入系统的解决方案...

    前几天班里有位学生电脑(windows 7系统)出问题了&#xff0c;具体表现是开机时一直停留在“配置windows update失败 还原更改 请勿关闭计算机”这个界面&#xff0c;长时间没反应&#xff0c;无法进入系统。这个问题原来帮其他同学也解决过&#xff0c;网上搜了不少资料&#x…...

    2022/11/19 21:17:04
  38. 一个电脑无法关闭计算机你应该怎么办,电脑显示“清理请勿关闭计算机”怎么办?...

    本文为你提供了3个有效解决电脑显示“清理请勿关闭计算机”问题的方法&#xff0c;并在最后教给你1种保护系统安全的好方法&#xff0c;一起来看看&#xff01;电脑出现“清理请勿关闭计算机”在Windows 7(SP1)和Windows Server 2008 R2 SP1中&#xff0c;添加了1个新功能在“磁…...

    2022/11/19 21:17:03
  39. 请勿关闭计算机还原更改要多久,电脑显示:配置windows更新失败,正在还原更改,请勿关闭计算机怎么办...

    许多用户在长期不使用电脑的时候&#xff0c;开启电脑发现电脑显示&#xff1a;配置windows更新失败&#xff0c;正在还原更改&#xff0c;请勿关闭计算机。。.这要怎么办呢&#xff1f;下面小编就带着大家一起看看吧&#xff01;如果能够正常进入系统&#xff0c;建议您暂时移…...

    2022/11/19 21:17:02
  40. 还原更改请勿关闭计算机 要多久,配置windows update失败 还原更改 请勿关闭计算机,电脑开机后一直显示以...

    配置windows update失败 还原更改 请勿关闭计算机&#xff0c;电脑开机后一直显示以以下文字资料是由(历史新知网www.lishixinzhi.com)小编为大家搜集整理后发布的内容&#xff0c;让我们赶快一起来看一下吧&#xff01;配置windows update失败 还原更改 请勿关闭计算机&#x…...

    2022/11/19 21:17:01
  41. 电脑配置中请勿关闭计算机怎么办,准备配置windows请勿关闭计算机一直显示怎么办【图解】...

    不知道大家有没有遇到过这样的一个问题&#xff0c;就是我们的win7系统在关机的时候&#xff0c;总是喜欢显示“准备配置windows&#xff0c;请勿关机”这样的一个页面&#xff0c;没有什么大碍&#xff0c;但是如果一直等着的话就要两个小时甚至更久都关不了机&#xff0c;非常…...

    2022/11/19 21:17:00
  42. 正在准备配置请勿关闭计算机,正在准备配置windows请勿关闭计算机时间长了解决教程...

    当电脑出现正在准备配置windows请勿关闭计算机时&#xff0c;一般是您正对windows进行升级&#xff0c;但是这个要是长时间没有反应&#xff0c;我们不能再傻等下去了。可能是电脑出了别的问题了&#xff0c;来看看教程的说法。正在准备配置windows请勿关闭计算机时间长了方法一…...

    2022/11/19 21:16:59
  43. 配置失败还原请勿关闭计算机,配置Windows Update失败,还原更改请勿关闭计算机...

    我们使用电脑的过程中有时会遇到这种情况&#xff0c;当我们打开电脑之后&#xff0c;发现一直停留在一个界面&#xff1a;“配置Windows Update失败&#xff0c;还原更改请勿关闭计算机”&#xff0c;等了许久还是无法进入系统。如果我们遇到此类问题应该如何解决呢&#xff0…...

    2022/11/19 21:16:58
  44. 如何在iPhone上关闭“请勿打扰”

    Apple’s “Do Not Disturb While Driving” is a potentially lifesaving iPhone feature, but it doesn’t always turn on automatically at the appropriate time. For example, you might be a passenger in a moving car, but your iPhone may think you’re the one dri…...

    2022/11/19 21:16:57