Eval (original) (raw)
Eval en varios lenguajes de programación, es una función que evalúa el contenido pasado como parámetro como si fuera una expresión. Funciones como eval son más comunes en lenguajes de programación interpretados que compilados, puesto que incluyendo esa función en un lenguaje compilado requiere incluir un intérprete o compilador con el programa, y más información sobre la ejecución (como por ejemplo los nombres de las variables). Algunos lenguajes compilados tienen instrucciones similares a eval.
Property | Value |
---|---|
dbo:abstract | Eval ist eine besondere Funktion zur Metaprogrammierung, mit der ein Interpreter (oder das Paar Compiler/Laufzeitsystem) angewiesen wird, ein in der Programmiersprache selbst geschriebenes Codefragment, das als Datenobjekt vorliegt, auszuwerten und das Ergebnis der Berechnung zurückzuliefern. Da auch etwaige Nebeneffekte wie die Bindung eines Wertes an einen Namen berücksichtigt werden, wird durch Eval die Programmiersprache selbst „programmierbar“. Die erste Programmiersprache mit dieser Funktion war Lisp. Da der Programmcode durch unbedarfte Nutzung von Eval schwer zu durchschauen sein kann, greifen viele Programmierer je nach Anwendungsfall lieber auf spezifischere Mechanismen wie Makros oder Closures zurück. Werden ungeprüfte Nutzereingaben an Eval übergeben, so kann dies ein großes Sicherheitsrisiko sein. Eval ist unter anderem in den Programmiersprachen Perl, Bash, PHP, JavaScript und Python vorhanden. (de) In some programming languages, eval , short for the English evaluate, is a function which evaluates a string as though it were an expression in the language, and returns a result; in others, it executes multiple lines of code as though they had been included instead of the line including the eval. The input to eval is not necessarily a string; it may be structured representation of code, such as an abstract syntax tree (like Lisp forms), or of special type such as code (as in Python). The analog for a statement is exec, which executes a string (or code in other format) as if it were a statement; in some languages, such as Python, both are present, while in other languages only one of either eval or exec is. Eval and apply are instances of meta-circular evaluators, interpreters of a language that can be invoked within the language itself. (en) Eval en varios lenguajes de programación, es una función que evalúa el contenido pasado como parámetro como si fuera una expresión. Funciones como eval son más comunes en lenguajes de programación interpretados que compilados, puesto que incluyendo esa función en un lenguaje compilado requiere incluir un intérprete o compilador con el programa, y más información sobre la ejecución (como por ejemplo los nombres de las variables). Algunos lenguajes compilados tienen instrucciones similares a eval. (es) Eval est une fonction utilisée en programmation. Elle est présente dans de nombreux langages interprétés et permet d'exécuter une commande à partir d'une chaîne de caractères (ou String) générée par le programme lui-même en cours d'exécution. (fr) Dalam beberapa bahasa pemrograman, eval adalah sebuah fungsi yang memungkinkan bahasa tersebut melakukan penilaian string. Nilai string adalah salah satu fitur yang ada pada bahasa-bahasa pemrograman yang memungkinkan string memiliki sintaks yang tepat sehingga bahasa tersebut dapat diimplementasikan. (in) eval 함수는 일부 프로그래밍 언어에서 제공하는 함수의 일종이다. 문자열을 입력 받아 그 문자열을 expression으로 처리한 후 결과값을 반환하는 함수이다. (ko) eval(イーバル)はいくつかのプログラミング言語が持つ、文字列を式として評価(evaluate)する関数、または複数の文をプログラム中のあるコンテキストで実行するサブルーチンである。 evalの類の機能はコンパイラ言語よりもインタプリタ言語でより一般的である。なぜならコンパイラ言語でこのような機能を実現するには、プログラム自体に言語処理系や(変数名などの)実行時情報を埋め込む必要があるからである。evalに近い機能を実現しているコンパイラ言語も存在する。 (ja) 在一些程序语言中,eval 是一个把字符串当作表达式执行而返回一个结果的函数;在另一些之中,它执行多行的代码就好像它们被包括在其中,而不是包括 eval 的这一行。eval 的输入不一定是字符串;在支持句法抽象的语言(如 Lisp)中,eval 的输入将会由抽象句法形式组成。 (zh) |
dbo:wikiPageExternalLink | http://www.nilobject.com/%3Fp=138 https://rosettacode.org/wiki/Runtime_evaluation https://web.archive.org/web/20030322002401/http:/www.cs.queensu.ca/software_docs/gnudev/gcl-ansi/gcl_256.html https://web.archive.org/web/20080930143344/http:/docs.python.org/lib/built-in-funcs.html%23l2h-25 |
dbo:wikiPageID | 623831 (xsd:integer) |
dbo:wikiPageLength | 27848 (xsd:nonNegativeInteger) |
dbo:wikiPageRevisionID | 1117756093 (xsd:integer) |
dbo:wikiPageWikiLink | dbr:Cartesian_product dbr:Python_(language) dbr:Python_(programming_language) dbr:Rosetta_Code dbr:Ruby_(programming_language) dbr:Scheme_(programming_language) dbr:Byte_code dbr:Bourne_shell dbc:IBM_i_Qshell_commands dbr:Apply dbr:Perl dbr:Currying dbr:Unix_shell dbr:Visual_Basic_for_Applications dbr:Closure_(computer_science) dbr:Morphism dbr:Conversational_Programming_System dbr:Lisp_(programming_language) dbr:Lua_(programming_language) dbr:Simply_typed_lambda_calculus dbr:Smalltalk dbr:Structure_and_Interpretation_of_Computer_Programs dbr:Subroutine dbr:Closed_monoidal_category dbr:Compiled_language dbr:Polish_notation dbr:Statement_(computer_science) dbr:Theoretical_computer_science dbr:Microcode dbr:Bs_(programming_language) dbr:Category_of_sets dbr:UNIX_System_V dbr:Windows_PowerShell dbr:ActionScript dbr:Ajax_(programming) dbr:Exception_handling dbr:Forth_(programming_language) dbr:PHP dbr:ColdFusion dbr:Product_(category_theory) dbc:Control_flow dbr:JSON dbr:JavaScript dbr:Tcl dbr:Assembly_language dbc:Unix_SUS2008_utilities dbr:Abstract_syntax_tree dbr:LISP dbr:Lambda_calculus dbr:Code_injection dbr:Assignment_(computer_science) dbr:PostScript dbr:IBM dbr:IBM_System/360_Model_50 dbr:Cartesian_closed_category dbr:Category_theory dbr:Name_binding dbr:Man_page dbr:Meta-circular_evaluator dbr:Programming_language dbr:Read-eval-print_loop dbr:Exception_handling_syntax dbr:Exec_(system_call) dbr:Interpreted_language dbr:Scope_(programming) dbr:Lisp_programming_language dbr:Return_value dbr:Right_adjoint dbr:Framework_(software_suite) dbr:Functional_language dbr:D_programming dbr:RBScript dbr:REALbasic_programming_language dbr:Code_duplication dbr:Expression_(programming) dbr:FRED_(programming_language) dbr:Wiktionary:evaluate |
dbp:wikiPageUsesTemplate | dbt:Citation_needed dbt:Quote dbt:Redirects dbt:Reflist dbt:Short_description dbt:Man dbt:Lowercase |
dct:subject | dbc:IBM_i_Qshell_commands dbc:Control_flow dbc:Unix_SUS2008_utilities |
gold:hypernym | dbr:Function |
rdf:type | yago:WikicatUnixSUS2008Utilities yago:Abstraction100002137 yago:Company108058098 yago:Group100031264 yago:Institution108053576 yago:Organization108008335 yago:YagoLegalActor yago:YagoLegalActorGeo yago:YagoPermanentlyLocatedEntity dbo:Disease yago:Service108186047 yago:SocialGroup107950920 yago:Utility108185758 |
rdfs:comment | Eval en varios lenguajes de programación, es una función que evalúa el contenido pasado como parámetro como si fuera una expresión. Funciones como eval son más comunes en lenguajes de programación interpretados que compilados, puesto que incluyendo esa función en un lenguaje compilado requiere incluir un intérprete o compilador con el programa, y más información sobre la ejecución (como por ejemplo los nombres de las variables). Algunos lenguajes compilados tienen instrucciones similares a eval. (es) Eval est une fonction utilisée en programmation. Elle est présente dans de nombreux langages interprétés et permet d'exécuter une commande à partir d'une chaîne de caractères (ou String) générée par le programme lui-même en cours d'exécution. (fr) Dalam beberapa bahasa pemrograman, eval adalah sebuah fungsi yang memungkinkan bahasa tersebut melakukan penilaian string. Nilai string adalah salah satu fitur yang ada pada bahasa-bahasa pemrograman yang memungkinkan string memiliki sintaks yang tepat sehingga bahasa tersebut dapat diimplementasikan. (in) eval 함수는 일부 프로그래밍 언어에서 제공하는 함수의 일종이다. 문자열을 입력 받아 그 문자열을 expression으로 처리한 후 결과값을 반환하는 함수이다. (ko) eval(イーバル)はいくつかのプログラミング言語が持つ、文字列を式として評価(evaluate)する関数、または複数の文をプログラム中のあるコンテキストで実行するサブルーチンである。 evalの類の機能はコンパイラ言語よりもインタプリタ言語でより一般的である。なぜならコンパイラ言語でこのような機能を実現するには、プログラム自体に言語処理系や(変数名などの)実行時情報を埋め込む必要があるからである。evalに近い機能を実現しているコンパイラ言語も存在する。 (ja) 在一些程序语言中,eval 是一个把字符串当作表达式执行而返回一个结果的函数;在另一些之中,它执行多行的代码就好像它们被包括在其中,而不是包括 eval 的这一行。eval 的输入不一定是字符串;在支持句法抽象的语言(如 Lisp)中,eval 的输入将会由抽象句法形式组成。 (zh) In some programming languages, eval , short for the English evaluate, is a function which evaluates a string as though it were an expression in the language, and returns a result; in others, it executes multiple lines of code as though they had been included instead of the line including the eval. The input to eval is not necessarily a string; it may be structured representation of code, such as an abstract syntax tree (like Lisp forms), or of special type such as code (as in Python). The analog for a statement is exec, which executes a string (or code in other format) as if it were a statement; in some languages, such as Python, both are present, while in other languages only one of either eval or exec is. (en) Eval ist eine besondere Funktion zur Metaprogrammierung, mit der ein Interpreter (oder das Paar Compiler/Laufzeitsystem) angewiesen wird, ein in der Programmiersprache selbst geschriebenes Codefragment, das als Datenobjekt vorliegt, auszuwerten und das Ergebnis der Berechnung zurückzuliefern. Eval ist unter anderem in den Programmiersprachen Perl, Bash, PHP, JavaScript und Python vorhanden. (de) |
rdfs:label | Eval (de) Eval (es) Eval (en) Eval (in) Eval (fr) Eval (ja) Eval (ko) Eval (zh) |
owl:sameAs | freebase:Eval wikidata:Eval dbpedia-de:Eval dbpedia-es:Eval dbpedia-fr:Eval dbpedia-id:Eval dbpedia-ja:Eval dbpedia-ko:Eval dbpedia-ms:Eval dbpedia-zh:Eval https://global.dbpedia.org/id/5638u yago-res:Eval |
prov:wasDerivedFrom | wikipedia-en:Eval?oldid=1117756093&ns=0 |
foaf:isPrimaryTopicOf | wikipedia-en:Eval |
is dbo:wikiPageRedirects of | dbr:Eval() dbr:Evaluation_of_a_function dbr:Evaluation_operator dbr:Evaluation_(computer_science) |
is dbo:wikiPageWikiLink of | dbr:Qshell dbr:Eval() dbr:Evaluation_of_a_function dbr:Evaluation_operator dbr:Apply dbr:Currying dbr:Dot_(command) dbr:Command-line_interface dbr:Comparison_of_command_shells dbr:Compiler dbr:SNOBOL dbr:Emacs_Lisp dbr:Cross-site_scripting dbr:BASIC_interpreter dbr:Bs_(programming_language) dbr:Type_system dbr:DBase dbr:Drawing_Hands dbr:Dynamic_programming_language dbr:FFmpeg dbr:Framework_(office_suite) dbr:Joy_(programming_language) dbr:Reification_(computer_science) dbr:APL_syntax_and_symbols dbr:Homoiconicity dbr:Evaluation_(computer_science) dbr:Evaluation_(disambiguation) dbr:Exec dbr:Self-modifying_code dbr:Nested_quotation dbr:Exponential_object dbr:Evaluation_strategy dbr:First-class_citizen dbr:First-class_function dbr:Read–eval–print_loop dbr:Outline_of_Perl |
is foaf:primaryTopic of | wikipedia-en:Eval |